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.001719/0.001719, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.00232/0.00232, allocations: 209.3 kB / 23.73 MB, free: 4.523 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.439/1.439, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.001495/0.001495, allocations: 47.92 kB / 377.7 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2884, allocations: 53.36 MB / 431.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01544/0.3038, allocations: 12.91 MB / 444 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02856/0.3324, allocations: 17.97 MB / 461.9 MB, free: 7.672 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003514/0.3359, allocations: 134.5 kB / 462.1 MB, free: 7.539 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00454/0.3405, allocations: 1.15 MB / 463.2 MB, free: 6.383 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01049/0.351, allocations: 2.409 MB / 465.6 MB, free: 3.953 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006381/0.3573, allocations: 1.414 MB / 467 MB, free: 2.539 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01423/0.3716, allocations: 6.727 MB / 473.8 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009334/0.3725, allocations: 278.2 kB / 474 MB, free: 11.49 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002472/0.375, allocations: 1.19 MB / 475.2 MB, free: 10.29 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002263/0.3772, allocations: 1.145 MB / 476.4 MB, free: 9.141 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002791/0.3775, allocations: 72 kB / 476.4 MB, free: 9.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004467/0.382, allocations: 1.233 MB / 477.7 MB, free: 7.836 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006213/0.3826, allocations: 345.5 kB / 478 MB, free: 7.496 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002002/0.3846, allocations: 1.048 MB / 479.1 MB, free: 6.441 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00948/0.3941, allocations: 4.044 MB / 483.1 MB, free: 2.379 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.555e-06/0.3941, allocations: 3.938 kB / 483.1 MB, free: 2.375 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.3941, allocations: 0 / 483.1 MB, free: 2.375 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001562/0.3942, allocations: 0 / 483.1 MB, free: 2.375 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.008436/0.4027, allocations: 3.886 MB / 487 MB, free: 14.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.373e-05/0.4027, allocations: 8.031 kB / 487 MB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001849/0.4029, allocations: 102.5 kB / 487.1 MB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009923/0.4039, allocations: 429.3 kB / 487.5 MB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004943/0.4089, allocations: 2.349 MB / 489.9 MB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.626e-05/0.4089, allocations: 41 kB / 489.9 MB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001528/0.4091, allocations: 55.94 kB / 490 MB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.4106, allocations: 0.7304 MB / 490.7 MB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.4106, allocations: 0 / 490.7 MB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.705e-05/0.4107, allocations: 20 kB / 490.7 MB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.794e-05/0.4107, allocations: 23.97 kB / 490.7 MB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001677/0.4124, allocations: 0.8163 MB / 491.6 MB, free: 9.758 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006402/0.4188, allocations: 2.91 MB / 494.5 MB, free: 6.781 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/0.4201, allocations: 0.5163 MB / 495 MB, free: 6.258 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009798/0.4211, allocations: 0.5614 MB / 495.5 MB, free: 5.688 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02785/0.4489, allocations: 13.73 MB / 0.4973 GB, free: 7.578 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008508/0.4498, allocations: 365.6 kB / 0.4977 GB, free: 7.207 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.276e-06/0.4498, allocations: 0 / 0.4977 GB, free: 7.207 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002746/0.4525, allocations: 1.134 MB / 0.4988 GB, free: 6.066 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.208e-05/0.4526, allocations: 59.34 kB / 0.4988 GB, free: 5.996 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00485/0.4574, allocations: 3.106 MB / 0.5019 GB, free: 2.891 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001818/0.4576, allocations: 41.69 kB / 0.5019 GB, free: 2.844 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001758/0.4594, allocations: 1.585 MB / 0.5035 GB, free: 1.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002666/0.4596, allocations: 170.6 kB / 0.5036 GB, free: 1.082 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003591/0.46, allocations: 226.4 kB / 0.5038 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.4602, allocations: 341.9 kB / 0.5042 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006611/0.4608, allocations: 241.9 kB / 0.5044 GB, free: 284 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009137/0.4617, allocations: 0.6095 MB / 0.505 GB, free: 15.49 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001609/0.4634, allocations: 0.9012 MB / 0.5059 GB, free: 14.42 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.725e-06/0.4634, allocations: 0 / 0.5059 GB, free: 14.42 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002802/0.4662, allocations: 1.267 MB / 0.5071 GB, free: 13.14 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.579e-05/0.4662, allocations: 12 kB / 0.5071 GB, free: 13.13 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001293/0.4663, allocations: 83.98 kB / 0.5072 GB, free: 13.05 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.033e-05/0.4664, allocations: 20.03 kB / 0.5072 GB, free: 13.03 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007786/0.4671, allocations: 203.6 kB / 0.5074 GB, free: 12.83 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.557e-05/0.4672, allocations: 19.94 kB / 0.5074 GB, free: 12.81 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001366/0.4685, allocations: 115.2 kB / 0.5076 GB, free: 12.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/0.4687, allocations: 67.94 kB / 0.5076 GB, free: 12.63 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.0009566/0.4696, allocations: 453.5 kB / 0.508 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005453/0.4702, allocations: 421.3 kB / 0.5085 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002739/0.4729, allocations: 1.207 MB / 0.5096 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.4729, allocations: 4 kB / 0.5096 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.4729, allocations: 0 / 0.5096 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.4729, allocations: 7.984 kB / 0.5096 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004062/0.477, allocations: 2.068 MB / 0.5117 GB, free: 8.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001045/0.4771, allocations: 71.98 kB / 0.5117 GB, free: 8.34 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004857/0.4776, allocations: 91.86 kB / 0.5118 GB, free: 8.25 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.129e-05/0.4776, allocations: 7.984 kB / 0.5118 GB, free: 8.242 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.198e-05/0.4777, allocations: 31.98 kB / 0.5119 GB, free: 8.211 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.741e-06/0.4777, allocations: 4 kB / 0.5119 GB, free: 8.207 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.4777, allocations: 0 / 0.5119 GB, free: 8.207 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002367/0.48, allocations: 1.347 MB / 0.5132 GB, free: 6.836 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009502/0.481, allocations: 443.1 kB / 0.5136 GB, free: 6.402 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000303/0.4813, allocations: 11.98 kB / 0.5136 GB, free: 6.391 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007078/0.482, allocations: 27.97 kB / 0.5136 GB, free: 6.363 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001665/0.4822, allocations: 63.86 kB / 0.5137 GB, free: 6.301 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.828e-05/0.4822, allocations: 36 kB / 0.5137 GB, free: 6.266 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002833/0.4851, allocations: 2.014 MB / 0.5157 GB, free: 4.258 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4851, allocations: 0 / 0.5157 GB, free: 4.258 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001471/0.4865, allocations: 0.6008 MB / 0.5163 GB, free: 3.656 MB / 430.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.0039/0.4904, allocations: 2.58 MB / 0.5188 GB, free: 1.043 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001665/0.4921, allocations: 0.7666 MB / 0.5196 GB, free: 256 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4921, allocations: 1.312 kB / 0.5196 GB, free: 256 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007952/0.4929, allocations: 431 kB / 0.52 GB, free: 15.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002581/0.4955, allocations: 0.6395 MB / 0.5206 GB, free: 15.16 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.225/0.7204, allocations: 17.04 MB / 0.5372 GB, free: 104.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001414/0.7219, allocations: 1.164 MB / 0.5384 GB, free: 104.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00128/0.7231, allocations: 359 kB / 0.5387 GB, free: 104.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001243/0.7244, allocations: 1.263 MB / 0.5399 GB, free: 104 MB / 446.1 MB Notification: Performance of SimCode: time 9.31e-07/0.7244, allocations: 1.375 kB / 0.5399 GB, free: 104 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1091/0.8335, allocations: 66.77 MB / 0.6051 GB, free: 41.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.33/16.16, allocations: 4.062 kB / 0.6051 GB, free: 41.97 MB / 446.1 MB " [Timeout remaining time 644] (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: 19.382140464993427]