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.001282/0.001282, allocations: 120.1 kB / 18.49 MB, free: 4.562 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.001283/0.001283, allocations: 215.1 kB / 21.45 MB, free: 1.617 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.402/1.402, allocations: 230.6 MB / 254.8 MB, free: 15.09 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 51.92 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0994/0.1009, allocations: 53.33 MB / 427 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.1882/0.289, allocations: 15.35 MB / 442.4 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02715/0.3162, allocations: 20.84 MB / 463.2 MB, free: 3.242 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004124/0.3203, allocations: 137.4 kB / 463.3 MB, free: 3.148 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0042/0.3245, allocations: 1.263 MB / 464.6 MB, free: 2.484 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00952/0.334, allocations: 2.379 MB / 467 MB, free: 1.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005444/0.3395, allocations: 1.438 MB / 468.4 MB, free: 276 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01193/0.3514, allocations: 6.716 MB / 475.1 MB, free: 13.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008149/0.3522, allocations: 270.7 kB / 475.4 MB, free: 12.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002353/0.3546, allocations: 1.183 MB / 476.6 MB, free: 12.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001991/0.3566, allocations: 1.142 MB / 477.7 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002559/0.3568, allocations: 74.78 kB / 477.8 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005249/0.3621, allocations: 1.482 MB / 479.3 MB, free: 11.08 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005064/0.3626, allocations: 338.4 kB / 479.6 MB, free: 10.81 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002524/0.3651, allocations: 1.428 MB / 481 MB, free: 9.867 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008434/0.3735, allocations: 4.008 MB / 485 MB, free: 6.684 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.3735, allocations: 0 / 485 MB, free: 6.684 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3735, allocations: 0 / 485 MB, free: 6.684 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.606e-05/0.3736, allocations: 0 / 485 MB, free: 6.684 MB / 382.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.006928/0.3806, allocations: 3.962 MB / 489 MB, free: 2.637 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.682e-05/0.3806, allocations: 12.03 kB / 489 MB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.04e-05/0.3807, allocations: 14.09 kB / 489 MB, free: 2.613 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001281/0.3808, allocations: 102.5 kB / 489.1 MB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005587/0.3814, allocations: 437.2 kB / 489.6 MB, free: 2.074 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003699/0.385, allocations: 2.499 MB / 492.1 MB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.96e-05/0.3851, allocations: 33 kB / 492.1 MB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/0.3852, allocations: 63.94 kB / 492.2 MB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001417/0.3866, allocations: 0.729 MB / 492.9 MB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.3867, allocations: 4 kB / 492.9 MB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.056e-05/0.3867, allocations: 20 kB / 492.9 MB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.602e-05/0.3868, allocations: 23.92 kB / 492.9 MB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001668/0.3884, allocations: 0.8124 MB / 493.7 MB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005444/0.3939, allocations: 3.103 MB / 496.8 MB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/0.3951, allocations: 0.521 MB / 497.4 MB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009975/0.3961, allocations: 0.5662 MB / 497.9 MB, free: 9.539 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0323/0.4284, allocations: 30.76 MB / 0.5163 GB, free: 6.531 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008121/0.4292, allocations: 365.6 kB / 0.5166 GB, free: 6.164 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.565e-06/0.4292, allocations: 0 / 0.5166 GB, free: 6.164 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002603/0.4318, allocations: 1.134 MB / 0.5178 GB, free: 5.023 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.56e-05/0.4319, allocations: 59.39 kB / 0.5178 GB, free: 4.953 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004295/0.4362, allocations: 3.087 MB / 0.5208 GB, free: 1.867 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.599e-05/0.4363, allocations: 37.7 kB / 0.5209 GB, free: 1.824 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001529/0.4378, allocations: 1.585 MB / 0.5224 GB, free: 236 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002199/0.438, allocations: 178.5 kB / 0.5226 GB, free: 56 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003552/0.4384, allocations: 234.4 kB / 0.5228 GB, free: 15.82 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.4386, allocations: 337.9 kB / 0.5231 GB, free: 15.48 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006286/0.4392, allocations: 241.8 kB / 0.5234 GB, free: 15.25 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009/0.4401, allocations: 0.6075 MB / 0.524 GB, free: 14.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001566/0.4417, allocations: 0.8974 MB / 0.5248 GB, free: 13.39 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/0.4417, allocations: 4 kB / 0.5248 GB, free: 13.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002466/0.4441, allocations: 1.262 MB / 0.5261 GB, free: 12.12 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.687e-05/0.4442, allocations: 8 kB / 0.5261 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001142/0.4443, allocations: 80 kB / 0.5261 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.814e-05/0.4443, allocations: 23.98 kB / 0.5262 GB, free: 12.01 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007299/0.445, allocations: 200.3 kB / 0.5264 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.761e-05/0.4451, allocations: 27.92 kB / 0.5264 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/0.4462, allocations: 111.3 kB / 0.5265 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/0.4463, allocations: 67.98 kB / 0.5266 GB, free: 11.61 MB / 446.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.0008268/0.4471, allocations: 449.4 kB / 0.527 GB, free: 11.16 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004631/0.4476, allocations: 425.3 kB / 0.5274 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00273/0.4503, allocations: 1.218 MB / 0.5286 GB, free: 9.52 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.348e-06/0.4503, allocations: 4 kB / 0.5286 GB, free: 9.516 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.4503, allocations: 0 / 0.5286 GB, free: 9.516 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.333e-06/0.4503, allocations: 1.312 kB / 0.5286 GB, free: 9.516 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003548/0.4539, allocations: 2.147 MB / 0.5307 GB, free: 7.305 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.393e-05/0.454, allocations: 71.98 kB / 0.5308 GB, free: 7.234 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004881/0.4545, allocations: 87.86 kB / 0.5308 GB, free: 7.148 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.348e-06/0.4545, allocations: 4 kB / 0.5308 GB, free: 7.145 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.22e-05/0.4545, allocations: 35.98 kB / 0.5309 GB, free: 7.109 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.622e-06/0.4545, allocations: 4 kB / 0.5309 GB, free: 7.105 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.4545, allocations: 0 / 0.5309 GB, free: 7.105 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002469/0.457, allocations: 1.343 MB / 0.5322 GB, free: 5.734 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000832/0.4578, allocations: 0.5022 MB / 0.5327 GB, free: 5.211 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002757/0.4581, allocations: 12.62 kB / 0.5327 GB, free: 5.199 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006561/0.4588, allocations: 31.89 kB / 0.5327 GB, free: 5.168 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/0.4589, allocations: 67.95 kB / 0.5328 GB, free: 5.102 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.601e-05/0.459, allocations: 39.98 kB / 0.5328 GB, free: 5.062 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00272/0.4617, allocations: 2.007 MB / 0.5348 GB, free: 3.062 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4617, allocations: 0 / 0.5348 GB, free: 3.062 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001535/0.4633, allocations: 0.593 MB / 0.5354 GB, free: 2.469 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.003986/0.4673, allocations: 2.58 MB / 0.5379 GB, free: 15.86 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00172/0.469, allocations: 0.7752 MB / 0.5386 GB, free: 15.06 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.469, allocations: 0 / 0.5386 GB, free: 15.06 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008013/0.4698, allocations: 427.1 kB / 0.539 GB, free: 14.62 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002876/0.4727, allocations: 0.6365 MB / 0.5397 GB, free: 13.98 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.025/0.4977, allocations: 17.06 MB / 0.5563 GB, free: 12.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001357/0.499, allocations: 1.714 MB / 0.558 GB, free: 10.66 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001056/0.5001, allocations: 357.3 kB / 0.5583 GB, free: 10.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001375/0.5014, allocations: 1.265 MB / 0.5596 GB, free: 9.039 MB / 478.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5014, allocations: 3.938 kB / 0.5596 GB, free: 9.035 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3014/0.8028, allocations: 63.25 MB / 0.6214 GB, free: 166.6 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.79/16.59, allocations: 12.12 kB / 0.6214 GB, free: 166.6 MB / 0.5137 GB " [Timeout remaining time 643] (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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 20.355482757033315]