Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001747/0.001748, allocations: 110.6 kB / 17.73 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00185/0.00185, allocations: 194.9 kB / 18.67 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.489/1.489, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 56.39 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1075, allocations: 46.63 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.2178/0.3254, allocations: 14.03 MB / 388.7 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02643/0.3519, allocations: 19.73 MB / 408.4 MB, free: 6.602 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003813/0.3557, allocations: 88.59 kB / 408.5 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004564/0.3604, allocations: 1.2 MB / 409.7 MB, free: 5.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01248/0.3729, allocations: 2.267 MB / 412 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007483/0.3804, allocations: 1.393 MB / 413.3 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01482/0.3953, allocations: 6.334 MB / 419.7 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001078/0.3964, allocations: 456.1 kB / 420.1 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00214/0.3985, allocations: 0.9963 MB / 421.1 MB, free: 100 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002009/0.4006, allocations: 1.082 MB / 422.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000265/0.4008, allocations: 74.25 kB / 422.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005258/0.4061, allocations: 1.159 MB / 423.4 MB, free: 15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004799/0.4066, allocations: 329.5 kB / 423.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002178/0.4088, allocations: 1.382 MB / 425.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007762/0.4166, allocations: 3.815 MB / 429 MB, free: 9.457 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.4166, allocations: 8 kB / 429 MB, free: 9.449 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4166, allocations: 0 / 429 MB, free: 9.449 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.642e-05/0.4167, allocations: 0 / 429 MB, free: 9.449 MB / 350.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.006303/0.423, allocations: 3.829 MB / 432.8 MB, free: 5.543 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.4231, allocations: 8.031 kB / 432.8 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001412/0.4233, allocations: 98.5 kB / 432.9 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005287/0.4238, allocations: 417.4 kB / 433.3 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003916/0.4277, allocations: 2.465 MB / 435.8 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.04e-05/0.4278, allocations: 41 kB / 435.8 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001441/0.4279, allocations: 55.94 kB / 435.9 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.4295, allocations: 0.7265 MB / 436.6 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/0.4295, allocations: 7.984 kB / 436.6 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.595e-05/0.4296, allocations: 16 kB / 436.6 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.396e-05/0.4296, allocations: 19.98 kB / 436.6 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001682/0.4313, allocations: 0.8163 MB / 437.4 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005777/0.4371, allocations: 3.087 MB / 440.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001295/0.4384, allocations: 0.5712 MB / 441.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001108/0.4395, allocations: 0.6438 MB / 441.7 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03418/0.4737, allocations: 30.17 MB / 471.9 MB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008887/0.4746, allocations: 366.3 kB / 472.3 MB, free: 9.746 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 3.126e-06/0.4747, allocations: 4 kB / 472.3 MB, free: 9.742 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002622/0.4773, allocations: 1.114 MB / 473.4 MB, free: 8.621 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.431e-05/0.4774, allocations: 59.41 kB / 473.5 MB, free: 8.551 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003975/0.4813, allocations: 2.952 MB / 476.4 MB, free: 5.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.641e-05/0.4814, allocations: 37.62 kB / 476.4 MB, free: 5.547 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001575/0.483, allocations: 1.503 MB / 477.9 MB, free: 4.035 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002168/0.4833, allocations: 178.6 kB / 478.1 MB, free: 3.859 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003597/0.4836, allocations: 234.3 kB / 478.4 MB, free: 3.625 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00021/0.4838, allocations: 345.9 kB / 478.7 MB, free: 3.281 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006684/0.4845, allocations: 237.9 kB / 478.9 MB, free: 3.047 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009651/0.4855, allocations: 0.602 MB / 479.5 MB, free: 2.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001662/0.4872, allocations: 0.8974 MB / 480.4 MB, free: 1.199 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.4872, allocations: 7.938 kB / 480.4 MB, free: 1.191 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00273/0.4899, allocations: 1.247 MB / 481.7 MB, free: 15.94 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.49, allocations: 12 kB / 481.7 MB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001274/0.4901, allocations: 86.8 kB / 481.8 MB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.571e-05/0.4901, allocations: 16 kB / 481.8 MB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000736/0.4909, allocations: 199.7 kB / 482 MB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.091e-05/0.4909, allocations: 27.88 kB / 482 MB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001177/0.4921, allocations: 123.3 kB / 482.1 MB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001147/0.4922, allocations: 64 kB / 482.2 MB, free: 15.42 MB / 414.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.0008377/0.4931, allocations: 441.3 kB / 482.6 MB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004517/0.4935, allocations: 401.5 kB / 483 MB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00282/0.4964, allocations: 1.198 MB / 484.2 MB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.4964, allocations: 7.938 kB / 484.2 MB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.4964, allocations: 0 / 484.2 MB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.4964, allocations: 3.984 kB / 484.2 MB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003769/0.5002, allocations: 2.097 MB / 486.3 MB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.877e-05/0.5003, allocations: 76.05 kB / 486.4 MB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004989/0.5008, allocations: 91.86 kB / 486.5 MB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.015e-06/0.5008, allocations: 4 kB / 486.5 MB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.243e-05/0.5009, allocations: 32 kB / 486.5 MB, free: 11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-05/0.5009, allocations: 7.984 kB / 486.5 MB, free: 11 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.5009, allocations: 0 / 486.5 MB, free: 11 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002594/0.5035, allocations: 1.319 MB / 487.8 MB, free: 9.648 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001013/0.5046, allocations: 494.4 kB / 488.3 MB, free: 9.145 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002877/0.5049, allocations: 8 kB / 488.3 MB, free: 9.137 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006459/0.5055, allocations: 31.97 kB / 488.4 MB, free: 9.105 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001868/0.5057, allocations: 63.88 kB / 488.4 MB, free: 9.043 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.851e-05/0.5058, allocations: 45.31 kB / 488.5 MB, free: 9 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003349/0.5092, allocations: 1.916 MB / 490.4 MB, free: 7.086 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5092, allocations: 3.938 kB / 490.4 MB, free: 7.082 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001725/0.5109, allocations: 0.593 MB / 491 MB, free: 6.488 MB / 414.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.004583/0.5155, allocations: 2.57 MB / 493.6 MB, free: 3.887 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001835/0.5174, allocations: 0.8179 MB / 494.4 MB, free: 3.043 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.5174, allocations: 0 / 494.4 MB, free: 3.043 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008364/0.5182, allocations: 451.4 kB / 494.8 MB, free: 2.578 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002265/0.5205, allocations: 0.5104 MB / 495.3 MB, free: 2.066 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02663/0.5472, allocations: 16.54 MB / 0.4999 GB, free: 1 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001327/0.5485, allocations: 1.673 MB / 0.5015 GB, free: 15.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001108/0.5497, allocations: 357.3 kB / 0.5018 GB, free: 14.95 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001355/0.551, allocations: 1.226 MB / 0.503 GB, free: 13.72 MB / 446.1 MB Notification: Performance of SimCode: time 2.114e-06/0.551, allocations: 0 / 0.503 GB, free: 13.72 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3293/0.8803, allocations: 61.12 MB / 0.5627 GB, free: 157.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.49/16.37, allocations: 5.297 kB / 0.5627 GB, free: 157.1 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches