Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0015/0.0015, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002214/0.002214, allocations: 210.5 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.501/1.501, allocations: 230.6 MB / 257.5 MB, free: 7.973 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002158/0.002158, allocations: 43.94 kB / 377.8 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.2838, allocations: 53.37 MB / 431.1 MB, free: 6.809 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01539/0.2992, allocations: 15.38 MB / 446.5 MB, free: 7.375 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02527/0.3244, allocations: 20.86 MB / 467.4 MB, free: 2.438 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002573/0.327, allocations: 134.5 kB / 467.5 MB, free: 2.305 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00336/0.3304, allocations: 1.273 MB / 468.8 MB, free: 1.027 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007989/0.3384, allocations: 2.413 MB / 471.2 MB, free: 14.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004758/0.3431, allocations: 1.465 MB / 472.7 MB, free: 13.12 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01126/0.3544, allocations: 6.72 MB / 479.4 MB, free: 6.383 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006876/0.3551, allocations: 282.2 kB / 479.7 MB, free: 6.078 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001858/0.3569, allocations: 1.178 MB / 480.8 MB, free: 4.895 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001527/0.3585, allocations: 1.141 MB / 482 MB, free: 3.746 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001758/0.3586, allocations: 76 kB / 482 MB, free: 3.672 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004213/0.3628, allocations: 1.483 MB / 483.5 MB, free: 2.188 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003843/0.3632, allocations: 333.5 kB / 483.9 MB, free: 1.859 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001618/0.3648, allocations: 1.432 MB / 485.3 MB, free: 428 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005881/0.3707, allocations: 4.009 MB / 489.3 MB, free: 12.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3707, allocations: 0 / 489.3 MB, free: 12.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3707, allocations: 0 / 489.3 MB, free: 12.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.095e-05/0.3708, allocations: 3.938 kB / 489.3 MB, free: 12.39 MB / 398.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.005864/0.3766, allocations: 3.882 MB / 493.2 MB, free: 8.445 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.3767, allocations: 12.03 kB / 493.2 MB, free: 8.434 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001323/0.3768, allocations: 102.5 kB / 493.3 MB, free: 8.324 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004642/0.3773, allocations: 433.2 kB / 493.7 MB, free: 7.898 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003724/0.381, allocations: 2.349 MB / 496.1 MB, free: 5.461 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.992e-05/0.381, allocations: 37 kB / 496.1 MB, free: 5.422 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001275/0.3812, allocations: 55.94 kB / 496.2 MB, free: 5.367 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001399/0.3826, allocations: 0.7343 MB / 496.9 MB, free: 4.629 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.3826, allocations: 4 kB / 496.9 MB, free: 4.625 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.384e-05/0.3827, allocations: 20 kB / 496.9 MB, free: 4.605 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.206e-05/0.3827, allocations: 19.98 kB / 496.9 MB, free: 4.586 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001605/0.3843, allocations: 0.8202 MB / 497.8 MB, free: 3.766 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005457/0.3898, allocations: 3.043 MB / 0.4891 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.3909, allocations: 0.5202 MB / 0.4896 GB, free: 132 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001005/0.3919, allocations: 0.5731 MB / 0.4901 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02593/0.4179, allocations: 13.78 MB / 0.5036 GB, free: 1.383 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007826/0.4186, allocations: 373.6 kB / 0.5039 GB, free: 1.004 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.244e-06/0.4187, allocations: 0 / 0.5039 GB, free: 1.004 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002376/0.421, allocations: 1.13 MB / 0.505 GB, free: 15.87 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.68e-05/0.4211, allocations: 63.41 kB / 0.5051 GB, free: 15.79 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003949/0.425, allocations: 3.083 MB / 0.5081 GB, free: 12.71 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.313e-05/0.4251, allocations: 37.69 kB / 0.5081 GB, free: 12.67 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001467/0.4266, allocations: 1.589 MB / 0.5097 GB, free: 11.07 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001713/0.4267, allocations: 182.5 kB / 0.5099 GB, free: 10.89 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003161/0.427, allocations: 226.4 kB / 0.5101 GB, free: 10.66 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.4272, allocations: 341.9 kB / 0.5104 GB, free: 10.32 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005877/0.4278, allocations: 245.9 kB / 0.5107 GB, free: 10.08 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008791/0.4287, allocations: 0.6095 MB / 0.5112 GB, free: 9.297 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001507/0.4302, allocations: 0.8974 MB / 0.5121 GB, free: 8.227 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.748e-06/0.4302, allocations: 4 kB / 0.5121 GB, free: 8.223 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002286/0.4325, allocations: 1.254 MB / 0.5134 GB, free: 6.961 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.4325, allocations: 12 kB / 0.5134 GB, free: 6.949 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001262/0.4326, allocations: 87.97 kB / 0.5134 GB, free: 6.863 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.999e-05/0.4327, allocations: 16.78 kB / 0.5135 GB, free: 6.848 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007571/0.4334, allocations: 207.6 kB / 0.5137 GB, free: 6.645 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.032e-05/0.4335, allocations: 27.92 kB / 0.5137 GB, free: 6.617 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009369/0.4344, allocations: 103.3 kB / 0.5138 GB, free: 6.516 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001167/0.4345, allocations: 68 kB / 0.5138 GB, free: 6.449 MB / 430.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.0007723/0.4353, allocations: 457.4 kB / 0.5143 GB, free: 5.992 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004021/0.4357, allocations: 421.3 kB / 0.5147 GB, free: 5.578 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00263/0.4383, allocations: 1.207 MB / 0.5159 GB, free: 4.363 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.4383, allocations: 4 kB / 0.5159 GB, free: 4.359 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.4383, allocations: 0 / 0.5159 GB, free: 4.359 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.4383, allocations: 7.984 kB / 0.5159 GB, free: 4.352 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003611/0.4419, allocations: 2.122 MB / 0.518 GB, free: 2.168 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000104/0.442, allocations: 68 kB / 0.518 GB, free: 2.102 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004844/0.4425, allocations: 91.86 kB / 0.5181 GB, free: 2.012 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.899e-06/0.4425, allocations: 4 kB / 0.5181 GB, free: 2.008 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.044e-05/0.4426, allocations: 31.98 kB / 0.5181 GB, free: 1.977 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.511e-06/0.4426, allocations: 7.938 kB / 0.5181 GB, free: 1.969 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4426, allocations: 64 / 0.5181 GB, free: 1.969 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002376/0.445, allocations: 1.346 MB / 0.5195 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001012/0.446, allocations: 443 kB / 0.5199 GB, free: 168 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003004/0.4463, allocations: 12 kB / 0.5199 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006666/0.447, allocations: 27.97 kB / 0.5199 GB, free: 128 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001579/0.4471, allocations: 71.92 kB / 0.52 GB, free: 56 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.517e-05/0.4472, allocations: 36 kB / 0.52 GB, free: 20 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003044/0.4502, allocations: 2.007 MB / 0.522 GB, free: 14.02 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4502, allocations: 0 / 0.522 GB, free: 14.02 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001464/0.4517, allocations: 0.6008 MB / 0.5226 GB, free: 13.41 MB / 446.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.00392/0.4556, allocations: 2.573 MB / 0.5251 GB, free: 10.81 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001954/0.4576, allocations: 0.7716 MB / 0.5258 GB, free: 10.01 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4576, allocations: 256 / 0.5258 GB, free: 10.01 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008077/0.4584, allocations: 434.9 kB / 0.5263 GB, free: 9.562 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002764/0.4612, allocations: 0.6396 MB / 0.5269 GB, free: 8.918 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2278/0.689, allocations: 17.04 MB / 0.5435 GB, free: 100.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008004/0.6898, allocations: 1.716 MB / 0.5452 GB, free: 99.82 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009651/0.6908, allocations: 355.8 kB / 0.5455 GB, free: 99.79 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009078/0.6917, allocations: 1.269 MB / 0.5468 GB, free: 98.77 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/0.6917, allocations: 0 / 0.5468 GB, free: 98.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1034/0.7951, allocations: 63.84 MB / 0.6091 GB, free: 38.65 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.68/20.48, allocations: 10.09 kB / 0.6091 GB, free: 38.64 MB / 446.1 MB " [Timeout remaining time 639] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 23.83552288194187]