Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0018/0.0018, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001876/0.001876, allocations: 217.1 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.438/1.438, allocations: 207.7 MB / 235.3 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 58.58 kB / 347.2 MB, free: 9.891 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2752, allocations: 49.16 MB / 396.3 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01045/0.2857, allocations: 12.31 MB / 408.7 MB, free: 0.582 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02783/0.3135, allocations: 17.11 MB / 425.8 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002689/0.3162, allocations: 142.8 kB / 425.9 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003368/0.3196, allocations: 1.124 MB / 427 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008176/0.3277, allocations: 2.369 MB / 429.4 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004425/0.3322, allocations: 1.354 MB / 430.7 MB, free: 48 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01072/0.3429, allocations: 6.511 MB / 437.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006902/0.3436, allocations: 266.3 kB / 437.5 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001839/0.3454, allocations: 1.081 MB / 438.6 MB, free: 8.703 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001358/0.3468, allocations: 1.071 MB / 439.7 MB, free: 7.625 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002103/0.347, allocations: 76 kB / 439.7 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003443/0.3504, allocations: 1.089 MB / 440.8 MB, free: 6.461 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003493/0.3508, allocations: 333.5 kB / 441.2 MB, free: 6.133 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001236/0.352, allocations: 1.059 MB / 442.2 MB, free: 5.066 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005487/0.3575, allocations: 4.068 MB / 446.3 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3575, allocations: 0 / 446.3 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3575, allocations: 0 / 446.3 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.054e-05/0.3575, allocations: 0 / 446.3 MB, free: 0.9805 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.005395/0.3629, allocations: 3.906 MB / 450.2 MB, free: 13.01 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.363, allocations: 15.98 kB / 450.2 MB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001275/0.3631, allocations: 98.44 kB / 450.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004595/0.3636, allocations: 437.2 kB / 450.7 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003701/0.3673, allocations: 2.369 MB / 453.1 MB, free: 9.996 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.92e-05/0.3673, allocations: 41 kB / 453.1 MB, free: 9.957 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001329/0.3674, allocations: 51.95 kB / 453.2 MB, free: 9.906 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001442/0.3689, allocations: 0.7382 MB / 453.9 MB, free: 9.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.3689, allocations: 0 / 453.9 MB, free: 9.16 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.731e-05/0.369, allocations: 16 kB / 453.9 MB, free: 9.145 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.226e-05/0.369, allocations: 19.98 kB / 454 MB, free: 9.125 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001654/0.3706, allocations: 0.8241 MB / 454.8 MB, free: 8.297 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005316/0.3759, allocations: 2.914 MB / 457.7 MB, free: 5.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.3772, allocations: 0.5241 MB / 458.2 MB, free: 4.789 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001027/0.3782, allocations: 0.5653 MB / 458.8 MB, free: 4.215 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02597/0.4042, allocations: 13.75 MB / 472.5 MB, free: 6.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007983/0.405, allocations: 373.5 kB / 472.9 MB, free: 5.707 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.505e-06/0.405, allocations: 0 / 472.9 MB, free: 5.707 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002447/0.4074, allocations: 1.126 MB / 474 MB, free: 4.578 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.275e-05/0.4075, allocations: 63.39 kB / 474.1 MB, free: 4.504 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004072/0.4115, allocations: 3.127 MB / 477.2 MB, free: 1.379 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.625e-05/0.4116, allocations: 33.7 kB / 477.2 MB, free: 1.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001581/0.4132, allocations: 1.586 MB / 478.8 MB, free: 15.74 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002044/0.4134, allocations: 182.5 kB / 479 MB, free: 15.56 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003241/0.4137, allocations: 234.3 kB / 479.2 MB, free: 15.33 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.4139, allocations: 341.9 kB / 479.6 MB, free: 14.99 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005914/0.4145, allocations: 245.8 kB / 479.8 MB, free: 14.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000873/0.4153, allocations: 0.594 MB / 480.4 MB, free: 13.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001532/0.4169, allocations: 0.9013 MB / 481.3 MB, free: 12.9 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.908e-06/0.4169, allocations: 7.938 kB / 481.3 MB, free: 12.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00228/0.4192, allocations: 1.259 MB / 482.6 MB, free: 11.62 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.882e-05/0.4192, allocations: 12 kB / 482.6 MB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001212/0.4193, allocations: 84.09 kB / 482.7 MB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.029e-05/0.4193, allocations: 16 kB / 482.7 MB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007234/0.4201, allocations: 203.6 kB / 482.9 MB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.68e-05/0.4201, allocations: 27.92 kB / 482.9 MB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009443/0.421, allocations: 103.3 kB / 483 MB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.4212, allocations: 68 kB / 483.1 MB, free: 11.12 MB / 398.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.0008019/0.422, allocations: 465.4 kB / 483.5 MB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004352/0.4224, allocations: 421.3 kB / 483.9 MB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002706/0.4251, allocations: 1.215 MB / 485.2 MB, free: 9.02 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.518e-06/0.4251, allocations: 8 kB / 485.2 MB, free: 9.012 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.4251, allocations: 0 / 485.2 MB, free: 9.012 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.4251, allocations: 0 / 485.2 MB, free: 9.012 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003676/0.4288, allocations: 2.076 MB / 487.2 MB, free: 6.871 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001104/0.4289, allocations: 71.98 kB / 487.3 MB, free: 6.801 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004963/0.4294, allocations: 91.86 kB / 487.4 MB, free: 6.711 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.4294, allocations: 4 kB / 487.4 MB, free: 6.707 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.384e-05/0.4295, allocations: 44.03 kB / 487.5 MB, free: 6.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.573e-06/0.4295, allocations: 4 kB / 487.5 MB, free: 6.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.4295, allocations: 3.938 kB / 487.5 MB, free: 6.656 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002342/0.4318, allocations: 1.34 MB / 488.8 MB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008942/0.4327, allocations: 435.1 kB / 489.2 MB, free: 4.863 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000292/0.433, allocations: 15.98 kB / 489.2 MB, free: 4.848 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007061/0.4337, allocations: 31.97 kB / 489.3 MB, free: 4.816 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/0.4339, allocations: 63.86 kB / 489.3 MB, free: 4.754 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.216e-05/0.4339, allocations: 40 kB / 489.4 MB, free: 4.715 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003832/0.4378, allocations: 2.023 MB / 491.4 MB, free: 2.699 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4378, allocations: 0 / 491.4 MB, free: 2.699 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001919/0.4397, allocations: 0.5969 MB / 492 MB, free: 2.102 MB / 398.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.003796/0.4435, allocations: 2.585 MB / 494.6 MB, free: 15.48 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.4451, allocations: 0.7787 MB / 495.4 MB, free: 14.67 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4451, allocations: 3.938 kB / 495.4 MB, free: 14.67 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007843/0.4459, allocations: 427 kB / 495.8 MB, free: 14.23 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001856/0.4478, allocations: 0.5345 MB / 496.3 MB, free: 13.69 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02479/0.4726, allocations: 17.16 MB / 0.5014 GB, free: 12.02 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001751/0.4743, allocations: 1.166 MB / 0.5026 GB, free: 10.81 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001676/0.476, allocations: 361.4 kB / 0.5029 GB, free: 10.45 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002198/0.4782, allocations: 1.272 MB / 0.5042 GB, free: 9.18 MB / 430.1 MB Notification: Performance of SimCode: time 8.11e-07/0.4782, allocations: 0 / 0.5042 GB, free: 9.18 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3084/0.7866, allocations: 66.88 MB / 0.5695 GB, free: 152.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.97/16.75, allocations: 2.281 kB / 0.5695 GB, free: 152.6 MB / 478.1 MB " [Timeout remaining time 643] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.959244658704847]