Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008325/0.0008325, allocations: 84.72 kB / 20.67 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 145.1 kB / 23.93 MB, free: 0.625 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.858/0.858, allocations: 173.4 MB / 200.5 MB, free: 9.414 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.028e-05/2.183e-05, allocations: 5.656 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.009241/0.009263, allocations: 12.88 MB / 331.3 MB, free: 9.426 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01679/0.02605, allocations: 17.94 MB / 349.2 MB, free: 7.414 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001539/0.02759, allocations: 138.5 kB / 349.4 MB, free: 7.277 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00231/0.0299, allocations: 1.172 MB / 350.5 MB, free: 6.098 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0045/0.0344, allocations: 2.479 MB / 353 MB, free: 3.598 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002504/0.0369, allocations: 1.441 MB / 354.5 MB, free: 2.152 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005927/0.04283, allocations: 6.823 MB / 361.3 MB, free: 11.3 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005761/0.04341, allocations: 266.3 kB / 361.5 MB, free: 11.02 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001608/0.04501, allocations: 1.609 MB / 363.2 MB, free: 9.402 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009166/0.04593, allocations: 0.8212 MB / 364 MB, free: 8.578 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001574/0.04609, allocations: 72 kB / 364 MB, free: 8.508 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001898/0.04799, allocations: 1.206 MB / 365.3 MB, free: 7.301 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001804/0.04817, allocations: 341.4 kB / 365.6 MB, free: 6.965 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005672/0.04873, allocations: 0.7632 MB / 366.4 MB, free: 6.199 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002734/0.05147, allocations: 3.958 MB / 370.3 MB, free: 2.227 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.05147, allocations: 4 kB / 370.3 MB, free: 2.223 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.05147, allocations: 0 / 370.3 MB, free: 2.223 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.835e-05/0.0515, allocations: 3.938 kB / 370.3 MB, free: 2.219 MB / 330.7 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.003059/0.05456, allocations: 3.839 MB / 374.2 MB, free: 14.32 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.0546, allocations: 8.922 kB / 374.2 MB, free: 14.31 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.716e-05/0.05469, allocations: 98.5 kB / 374.3 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002586/0.05494, allocations: 437.2 kB / 374.7 MB, free: 13.78 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002055/0.057, allocations: 2.349 MB / 377 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.962e-05/0.05703, allocations: 37 kB / 377.1 MB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.655e-05/0.05712, allocations: 59.88 kB / 377.1 MB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009566/0.05807, allocations: 0.7304 MB / 377.9 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.05809, allocations: 4 kB / 377.9 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.436e-05/0.05813, allocations: 16 kB / 377.9 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.05814, allocations: 19.98 kB / 377.9 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009061/0.05905, allocations: 0.8202 MB / 378.7 MB, free: 9.645 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002987/0.06204, allocations: 2.899 MB / 381.6 MB, free: 6.68 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006553/0.06269, allocations: 0.5125 MB / 382.1 MB, free: 6.16 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005625/0.06325, allocations: 0.5692 MB / 382.7 MB, free: 5.586 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01455/0.07781, allocations: 13.69 MB / 396.4 MB, free: 7.512 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005023/0.07831, allocations: 381.7 kB / 396.8 MB, free: 7.125 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 1.964e-06/0.07831, allocations: 0 / 396.8 MB, free: 7.125 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001363/0.07967, allocations: 1.124 MB / 397.9 MB, free: 5.992 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.858e-05/0.07971, allocations: 63.41 kB / 398 MB, free: 5.918 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002711/0.08242, allocations: 3.102 MB / 401.1 MB, free: 2.816 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.64e-05/0.08246, allocations: 33.7 kB / 401.1 MB, free: 2.777 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009927/0.08345, allocations: 1.585 MB / 402.7 MB, free: 1.184 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.08356, allocations: 170.6 kB / 402.8 MB, free: 1.016 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001968/0.08375, allocations: 226.4 kB / 403.1 MB, free: 0.7891 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.575e-05/0.08384, allocations: 338 kB / 403.4 MB, free: 464 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003446/0.08418, allocations: 249.8 kB / 403.6 MB, free: 212 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004941/0.08468, allocations: 0.5978 MB / 404.2 MB, free: 15.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009163/0.08559, allocations: 0.9023 MB / 405.1 MB, free: 14.36 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.0856, allocations: 8 kB / 405.1 MB, free: 14.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001507/0.08711, allocations: 1.264 MB / 406.4 MB, free: 13.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.08713, allocations: 16.12 kB / 406.4 MB, free: 13.06 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.459e-05/0.0872, allocations: 84 kB / 406.5 MB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.928e-05/0.08723, allocations: 16 kB / 406.5 MB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003834/0.08762, allocations: 199.7 kB / 406.7 MB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.879e-05/0.08764, allocations: 31.86 kB / 406.7 MB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005671/0.0882, allocations: 111.3 kB / 406.9 MB, free: 12.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.507e-05/0.08829, allocations: 67.98 kB / 406.9 MB, free: 12.56 MB / 378.7 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.0005018/0.08879, allocations: 451.4 kB / 407.4 MB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000256/0.08905, allocations: 421.3 kB / 407.8 MB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001606/0.09065, allocations: 1.208 MB / 409 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.09066, allocations: 4 kB / 409 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.09067, allocations: 4 kB / 409 MB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.09067, allocations: 0 / 409 MB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002147/0.09282, allocations: 2.069 MB / 411.1 MB, free: 8.344 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.491e-05/0.09287, allocations: 72 kB / 411.1 MB, free: 8.273 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002655/0.09314, allocations: 99.84 kB / 411.2 MB, free: 8.176 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.09315, allocations: 3.938 kB / 411.2 MB, free: 8.172 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.862e-05/0.09318, allocations: 35.98 kB / 411.3 MB, free: 8.137 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.09319, allocations: 7.938 kB / 411.3 MB, free: 8.129 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.09319, allocations: 64 / 411.3 MB, free: 8.129 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001432/0.09462, allocations: 1.349 MB / 412.6 MB, free: 6.754 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000487/0.09511, allocations: 431.1 kB / 413 MB, free: 6.332 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001565/0.09527, allocations: 12 kB / 413.1 MB, free: 6.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003588/0.09563, allocations: 31.95 kB / 413.1 MB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/0.09574, allocations: 59.94 kB / 413.1 MB, free: 6.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002414/0.09599, allocations: 39.98 kB / 413.2 MB, free: 6.191 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001738/0.09772, allocations: 2.007 MB / 415.2 MB, free: 4.191 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.09772, allocations: 0 / 415.2 MB, free: 4.191 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009366/0.09866, allocations: 0.6047 MB / 415.8 MB, free: 3.586 MB / 378.7 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.00228/0.1009, allocations: 2.621 MB / 418.4 MB, free: 0.9336 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009223/0.1019, allocations: 0.779 MB / 419.2 MB, free: 128 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1019, allocations: 0 / 419.2 MB, free: 128 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004302/0.1023, allocations: 435.5 kB / 419.6 MB, free: 15.68 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001401/0.1037, allocations: 0.6279 MB / 420.2 MB, free: 15.04 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0165/0.1202, allocations: 16.97 MB / 437.2 MB, free: 13.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007674/0.121, allocations: 1.166 MB / 438.4 MB, free: 12.36 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007645/0.1217, allocations: 357.3 kB / 438.7 MB, free: 12 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008423/0.1226, allocations: 1.266 MB / 440 MB, free: 10.73 MB / 410.7 MB Notification: Performance of SimCode: time 1.183e-06/0.1226, allocations: 0 / 440 MB, free: 10.73 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2148/0.3373, allocations: 66.47 MB / 0.4946 GB, free: 71.76 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.767/9.105, allocations: 11.31 kB / 0.4946 GB, free: 71.76 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 11.266161769628525]