Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001077/0.001077, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00105/0.00105, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 227.4 MB / 246.3 MB, free: 10.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 63.42 kB / 306.4 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0824/0.08354, allocations: 50.53 MB / 356.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.1584/0.2419, allocations: 14.58 MB / 371.5 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01879/0.2608, allocations: 20.93 MB / 392.4 MB, free: 476 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001551/0.2624, allocations: 30.66 kB / 392.4 MB, free: 464 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002854/0.2653, allocations: 1.091 MB / 393.5 MB, free: 15.94 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006805/0.2721, allocations: 1.914 MB / 395.4 MB, free: 14.81 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004002/0.2761, allocations: 1.216 MB / 396.6 MB, free: 14.17 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008965/0.2851, allocations: 6.423 MB / 403.1 MB, free: 11.44 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006202/0.2857, allocations: 435 kB / 403.5 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001363/0.2871, allocations: 1.049 MB / 404.5 MB, free: 10.72 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009051/0.288, allocations: 1.093 MB / 405.6 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001662/0.2882, allocations: 53.3 kB / 405.7 MB, free: 10.08 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004087/0.2923, allocations: 1.459 MB / 407.1 MB, free: 9.453 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003053/0.2926, allocations: 302.2 kB / 407.4 MB, free: 9.219 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001178/0.2938, allocations: 1.357 MB / 408.8 MB, free: 7.918 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003596/0.2974, allocations: 3.665 MB / 412.5 MB, free: 4.238 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.2974, allocations: 0 / 412.5 MB, free: 4.238 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.2974, allocations: 0 / 412.5 MB, free: 4.238 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.738e-05/0.2974, allocations: 0 / 412.5 MB, free: 4.238 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004443/0.3019, allocations: 3.684 MB / 416.1 MB, free: 488 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.3019, allocations: 12.03 kB / 416.1 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001149/0.302, allocations: 102.5 kB / 416.2 MB, free: 364 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003671/0.3024, allocations: 399.3 kB / 416.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002902/0.3053, allocations: 2.429 MB / 419.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.076e-05/0.3054, allocations: 33 kB / 419.1 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.3055, allocations: 63.89 kB / 419.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/0.3068, allocations: 0.7312 MB / 419.9 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.3068, allocations: 0 / 419.9 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.796e-05/0.3069, allocations: 20 kB / 419.9 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.995e-05/0.3069, allocations: 19.98 kB / 419.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001498/0.3084, allocations: 0.8163 MB / 420.7 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004779/0.3132, allocations: 3.055 MB / 423.8 MB, free: 8.617 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.3144, allocations: 0.5713 MB / 424.4 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009325/0.3153, allocations: 0.6468 MB / 425 MB, free: 7.391 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02652/0.3419, allocations: 30.76 MB / 455.8 MB, free: 4.383 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007469/0.3426, allocations: 365.6 kB / 456.1 MB, free: 4.012 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 3.046e-06/0.3427, allocations: 0 / 456.1 MB, free: 4.012 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002246/0.3449, allocations: 1.089 MB / 457.2 MB, free: 2.914 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/0.345, allocations: 63.41 kB / 457.3 MB, free: 2.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003679/0.3487, allocations: 2.939 MB / 460.2 MB, free: 15.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.102e-05/0.3487, allocations: 37.7 kB / 460.3 MB, free: 15.85 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001119/0.3499, allocations: 1.485 MB / 461.8 MB, free: 14.35 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.35, allocations: 165.7 kB / 461.9 MB, free: 14.19 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002758/0.3503, allocations: 226.1 kB / 462.1 MB, free: 13.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.3504, allocations: 337.9 kB / 462.5 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005474/0.3509, allocations: 245.9 kB / 462.7 MB, free: 13.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007337/0.3517, allocations: 0.5981 MB / 463.3 MB, free: 12.62 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/0.353, allocations: 0.9012 MB / 464.2 MB, free: 11.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.353, allocations: 11.94 kB / 464.2 MB, free: 11.53 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001929/0.3549, allocations: 1.218 MB / 465.4 MB, free: 10.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.355, allocations: 12.22 kB / 465.4 MB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.674e-05/0.3551, allocations: 84 kB / 465.5 MB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.331e-05/0.3551, allocations: 16 kB / 465.5 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006864/0.3558, allocations: 203.6 kB / 465.7 MB, free: 9.996 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.315e-05/0.3558, allocations: 23.92 kB / 465.8 MB, free: 9.973 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008528/0.3567, allocations: 107.1 kB / 465.9 MB, free: 9.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.52e-05/0.3568, allocations: 64 kB / 465.9 MB, free: 9.805 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000602/0.3574, allocations: 442.4 kB / 466.4 MB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003038/0.3577, allocations: 387.4 kB / 466.7 MB, free: 8.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002674/0.3604, allocations: 1.193 MB / 467.9 MB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.894e-06/0.3604, allocations: 4 kB / 467.9 MB, free: 7.766 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.3604, allocations: 11.88 kB / 468 MB, free: 7.758 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.3604, allocations: 0 / 468 MB, free: 7.758 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002831/0.3633, allocations: 2.089 MB / 470 MB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.642e-05/0.3634, allocations: 71.98 kB / 470.1 MB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004668/0.3638, allocations: 91.86 kB / 470.2 MB, free: 5.441 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.768e-06/0.3639, allocations: 8.062 kB / 470.2 MB, free: 5.434 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.427e-05/0.3639, allocations: 28 kB / 470.2 MB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.179e-06/0.3639, allocations: 4 kB / 470.2 MB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3639, allocations: 0 / 470.2 MB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002064/0.366, allocations: 1.297 MB / 471.5 MB, free: 4.074 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005776/0.3666, allocations: 480.2 kB / 472 MB, free: 3.582 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002812/0.3669, allocations: 12 kB / 472 MB, free: 3.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006612/0.3676, allocations: 32.03 kB / 472 MB, free: 3.539 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.3677, allocations: 67.81 kB / 472.1 MB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.679e-05/0.3678, allocations: 36 kB / 472.2 MB, free: 3.438 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002156/0.37, allocations: 1.907 MB / 474.1 MB, free: 1.531 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.37, allocations: 0 / 474.1 MB, free: 1.531 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00121/0.3712, allocations: 0.5855 MB / 474.6 MB, free: 0.9453 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003474/0.3747, allocations: 2.533 MB / 477.2 MB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00158/0.3763, allocations: 0.8138 MB / 478 MB, free: 13.54 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3763, allocations: 0 / 478 MB, free: 13.54 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007257/0.377, allocations: 435 kB / 478.4 MB, free: 13.09 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002379/0.3794, allocations: 0.5903 MB / 479 MB, free: 12.49 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0375/0.4169, allocations: 21.7 MB / 0.489 GB, free: 4.633 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009658/0.4179, allocations: 1.661 MB / 0.4906 GB, free: 2.945 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001253/0.4192, allocations: 365.1 kB / 0.4909 GB, free: 2.582 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001058/0.4202, allocations: 1.214 MB / 0.4921 GB, free: 1.367 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4202, allocations: 0 / 0.4921 GB, free: 1.367 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2188/0.639, allocations: 58.79 MB / 0.5495 GB, free: 141.2 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/0.6392, allocations: 208.3 kB / 0.5497 GB, free: 141 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.4/4.039, allocations: 1.594 kB / 0.5497 GB, free: 141 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches