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.005642/0.005642, allocations: 114 kB / 21.97 MB, free: 5.227 MB / 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.001409/0.001409, allocations: 212.3 kB / 25.28 MB, free: 3.25 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.361/1.361, allocations: 207.6 MB / 236.1 MB, free: 9.98 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="cs",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.001774/0.001774, allocations: 51.94 kB / 348 MB, free: 10.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2442, allocations: 49.15 MB / 397.1 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.0118/0.256, allocations: 14.68 MB / 411.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02666/0.2826, allocations: 19.87 MB / 431.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003504/0.2861, allocations: 145.8 kB / 431.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004153/0.2903, allocations: 1.238 MB / 433.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009584/0.2999, allocations: 2.386 MB / 435.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005564/0.3054, allocations: 1.399 MB / 436.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01166/0.3171, allocations: 6.506 MB / 443.3 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007849/0.3179, allocations: 278.3 kB / 443.6 MB, free: 4.668 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002101/0.32, allocations: 1.081 MB / 444.7 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001556/0.3215, allocations: 1.118 MB / 445.8 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001924/0.3217, allocations: 72 kB / 445.9 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003776/0.3255, allocations: 1.163 MB / 447.1 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004871/0.326, allocations: 337.5 kB / 447.4 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003067/0.3291, allocations: 1.448 MB / 448.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008126/0.3372, allocations: 4.017 MB / 452.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3372, allocations: 4 kB / 452.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3372, allocations: 0 / 452.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.733e-05/0.3373, allocations: 0 / 452.8 MB, free: 11.39 MB / 366.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.006549/0.3438, allocations: 3.91 MB / 456.8 MB, free: 7.422 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.637e-05/0.3439, allocations: 15.98 kB / 456.8 MB, free: 7.406 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.544e-05/0.3439, allocations: 13 kB / 456.8 MB, free: 7.395 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001461/0.3441, allocations: 98.5 kB / 456.9 MB, free: 7.289 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006631/0.3447, allocations: 437.2 kB / 457.3 MB, free: 6.859 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004025/0.3488, allocations: 2.373 MB / 459.7 MB, free: 4.395 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.503e-05/0.3488, allocations: 37 kB / 459.7 MB, free: 4.359 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001405/0.3489, allocations: 51.95 kB / 459.8 MB, free: 4.309 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/0.3504, allocations: 0.7343 MB / 460.5 MB, free: 3.566 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.3504, allocations: 4 kB / 460.5 MB, free: 3.562 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.05e-05/0.3504, allocations: 20 kB / 460.5 MB, free: 3.543 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.377e-05/0.3505, allocations: 23.92 kB / 460.6 MB, free: 3.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001623/0.3521, allocations: 0.8241 MB / 461.4 MB, free: 2.695 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005804/0.3579, allocations: 3.066 MB / 464.4 MB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001212/0.3591, allocations: 0.5164 MB / 465 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009682/0.3601, allocations: 0.574 MB / 465.5 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02519/0.3853, allocations: 13.8 MB / 479.3 MB, free: 276 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008019/0.3861, allocations: 377.6 kB / 479.7 MB, free: 15.88 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.825e-06/0.3861, allocations: 0 / 479.7 MB, free: 15.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002515/0.3886, allocations: 1.126 MB / 480.8 MB, free: 14.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/0.3886, allocations: 63.41 kB / 480.9 MB, free: 14.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004147/0.3928, allocations: 3.104 MB / 484 MB, free: 11.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001019/0.3929, allocations: 29.7 kB / 484 MB, free: 11.54 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001432/0.3943, allocations: 1.593 MB / 485.6 MB, free: 9.938 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002663/0.3946, allocations: 182.5 kB / 485.8 MB, free: 9.758 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003663/0.395, allocations: 230.4 kB / 486 MB, free: 9.527 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.3951, allocations: 341.9 kB / 486.4 MB, free: 9.188 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006317/0.3958, allocations: 237.9 kB / 486.6 MB, free: 8.953 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008843/0.3966, allocations: 0.6057 MB / 487.2 MB, free: 8.172 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001556/0.3982, allocations: 0.8973 MB / 488.1 MB, free: 7.102 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.247e-06/0.3982, allocations: 4 kB / 488.1 MB, free: 7.098 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002512/0.4007, allocations: 1.27 MB / 489.4 MB, free: 5.816 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.427e-05/0.4008, allocations: 8 kB / 489.4 MB, free: 5.809 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001185/0.4009, allocations: 87.98 kB / 489.5 MB, free: 5.723 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.35e-05/0.4009, allocations: 19.94 kB / 489.5 MB, free: 5.703 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007192/0.4016, allocations: 204.2 kB / 489.7 MB, free: 5.504 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.688e-05/0.4016, allocations: 19.94 kB / 489.7 MB, free: 5.484 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001329/0.403, allocations: 115.3 kB / 489.8 MB, free: 5.371 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000133/0.4031, allocations: 64 kB / 489.9 MB, free: 5.309 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.0008801/0.404, allocations: 453.4 kB / 490.3 MB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006078/0.4046, allocations: 425.3 kB / 490.7 MB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002827/0.4074, allocations: 1.219 MB / 491.9 MB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.4074, allocations: 8 kB / 492 MB, free: 3.203 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.4074, allocations: 0 / 492 MB, free: 3.203 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.4074, allocations: 3.984 kB / 492 MB, free: 3.199 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00383/0.4113, allocations: 2.115 MB / 494.1 MB, free: 1.023 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.912e-05/0.4114, allocations: 71.94 kB / 494.1 MB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004882/0.4119, allocations: 95.91 kB / 494.2 MB, free: 0.8594 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.4119, allocations: 0 / 494.2 MB, free: 0.8594 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.138e-05/0.4119, allocations: 36.06 kB / 494.3 MB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.045e-06/0.4119, allocations: 11.88 kB / 494.3 MB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.4119, allocations: 0 / 494.3 MB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002494/0.4144, allocations: 1.348 MB / 495.6 MB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009792/0.4154, allocations: 443 kB / 496.1 MB, free: 15 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002919/0.4157, allocations: 8 kB / 496.1 MB, free: 15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006746/0.4164, allocations: 36.02 kB / 496.1 MB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001621/0.4165, allocations: 59.88 kB / 496.2 MB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.508e-05/0.4166, allocations: 43.98 kB / 496.2 MB, free: 14.86 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002913/0.4195, allocations: 2.019 MB / 498.2 MB, free: 12.85 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4195, allocations: 0 / 498.2 MB, free: 12.85 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00145/0.421, allocations: 0.6047 MB / 498.8 MB, free: 12.24 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.003849/0.4248, allocations: 2.581 MB / 0.4897 GB, free: 9.625 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001667/0.4265, allocations: 0.7827 MB / 0.4904 GB, free: 8.816 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.4265, allocations: 0 / 0.4904 GB, free: 8.816 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007545/0.4273, allocations: 415 kB / 0.4908 GB, free: 8.387 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002024/0.4293, allocations: 0.5462 MB / 0.4914 GB, free: 7.836 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02802/0.4573, allocations: 17.16 MB / 0.5081 GB, free: 6.152 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001355/0.4587, allocations: 1.718 MB / 0.5098 GB, free: 4.406 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001062/0.4597, allocations: 365.4 kB / 0.5101 GB, free: 4.043 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001336/0.4611, allocations: 1.272 MB / 0.5114 GB, free: 2.77 MB / 430.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4611, allocations: 0 / 0.5114 GB, free: 2.77 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2917/0.7528, allocations: 64.22 MB / 0.5741 GB, free: 150.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.23/18.98, allocations: 6.094 kB / 0.5741 GB, free: 150.6 MB / 478.1 MB " [Timeout remaining time 641] (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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 22.787009605031926]