Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.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.0008311/0.0008311, allocations: 76.08 kB / 20.67 MB, free: 3.891 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.0008412/0.0008412, allocations: 149.1 kB / 23.93 MB, free: 0.6289 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.8765/0.8765, allocations: 173.3 MB / 200.4 MB, free: 9.426 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.Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.265e-05/1.416e-05, allocations: 6.219 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.004942/0.004956, allocations: 6.905 MB / 325.3 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0134/0.01836, allocations: 16.66 MB / 342 MB, free: 14.68 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007242/0.01908, allocations: 94.94 kB / 342.1 MB, free: 14.59 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001557/0.02064, allocations: 0.7786 MB / 342.9 MB, free: 13.8 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003467/0.02411, allocations: 1.858 MB / 344.7 MB, free: 11.93 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002045/0.02615, allocations: 1.347 MB / 346.1 MB, free: 10.58 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002697/0.02885, allocations: 3.36 MB / 349.4 MB, free: 7.203 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002217/0.02907, allocations: 132.8 kB / 349.6 MB, free: 7.047 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005742/0.02964, allocations: 0.7948 MB / 350.4 MB, free: 6.25 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003453/0.02999, allocations: 414.5 kB / 350.8 MB, free: 5.844 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.37e-05/0.03005, allocations: 43.98 kB / 350.8 MB, free: 5.801 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001557/0.03161, allocations: 1.167 MB / 352 MB, free: 4.633 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.456e-05/0.0317, allocations: 174.8 kB / 352.1 MB, free: 4.461 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002477/0.03195, allocations: 374.8 kB / 352.5 MB, free: 4.094 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00174/0.03369, allocations: 2.266 MB / 354.8 MB, free: 1.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.0337, allocations: 0 / 354.8 MB, free: 1.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.0337, allocations: 0 / 354.8 MB, free: 1.82 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.572e-05/0.03371, allocations: 4 kB / 354.8 MB, free: 1.816 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001779/0.03549, allocations: 1.978 MB / 356.8 MB, free: 15.79 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.03553, allocations: 8.922 kB / 356.8 MB, free: 15.79 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.327e-05/0.03559, allocations: 70.53 kB / 356.8 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001443/0.03574, allocations: 202.7 kB / 357 MB, free: 15.51 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001187/0.03692, allocations: 1.256 MB / 358.3 MB, free: 14.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.03694, allocations: 20.64 kB / 358.3 MB, free: 14.16 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.527e-05/0.037, allocations: 28 kB / 358.3 MB, free: 14.13 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005197/0.03752, allocations: 425.9 kB / 358.8 MB, free: 13.71 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.03753, allocations: 0 / 358.8 MB, free: 13.71 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.824e-05/0.03755, allocations: 15.98 kB / 358.8 MB, free: 13.69 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.03756, allocations: 11.94 kB / 358.8 MB, free: 13.68 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006196/0.03818, allocations: 474.4 kB / 359.2 MB, free: 13.21 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00175/0.03993, allocations: 1.484 MB / 360.7 MB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005013/0.04044, allocations: 339.4 kB / 361.1 MB, free: 11.33 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004116/0.04085, allocations: 377.9 kB / 361.4 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007482/0.04833, allocations: 6.954 MB / 368.4 MB, free: 3.805 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003505/0.04868, allocations: 262.9 kB / 368.6 MB, free: 3.535 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 1.573e-06/0.04868, allocations: 0 / 368.6 MB, free: 3.535 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.00113/0.04981, allocations: 0.7704 MB / 369.4 MB, free: 2.754 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.919e-05/0.04985, allocations: 59.39 kB / 369.5 MB, free: 2.684 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001034/0.05088, allocations: 1.463 MB / 370.9 MB, free: 1.184 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/0.05091, allocations: 29.7 kB / 371 MB, free: 1.148 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003797/0.05129, allocations: 0.7271 MB / 371.7 MB, free: 428 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.71e-05/0.05135, allocations: 99.16 kB / 371.8 MB, free: 328 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.05145, allocations: 126 kB / 371.9 MB, free: 196 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.05156, allocations: 329.9 kB / 372.2 MB, free: 15.86 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002522/0.05181, allocations: 168.8 kB / 372.4 MB, free: 15.7 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005939/0.0524, allocations: 354.8 kB / 372.7 MB, free: 15.26 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005789/0.05298, allocations: 0.5411 MB / 373.3 MB, free: 14.62 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.05298, allocations: 0 / 373.3 MB, free: 14.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008016/0.05379, allocations: 0.7518 MB / 374 MB, free: 13.86 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.0538, allocations: 8 kB / 374 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.482e-05/0.05384, allocations: 44 kB / 374.1 MB, free: 13.81 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002054/0.05404, allocations: 133.5 kB / 374.2 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002098/0.05425, allocations: 103.8 kB / 374.3 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003921/0.05464, allocations: 0.6811 MB / 375 MB, free: 12.87 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002762/0.05492, allocations: 75.58 kB / 375.1 MB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.079e-05/0.05496, allocations: 32 kB / 375.1 MB, free: 12.77 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002551/0.05522, allocations: 283.2 kB / 375.4 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.05532, allocations: 194.8 kB / 375.6 MB, free: 12.29 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009856/0.0563, allocations: 0.7385 MB / 376.3 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.05631, allocations: 7.938 kB / 376.3 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.05632, allocations: 3.984 kB / 376.3 MB, free: 11.53 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/0.05632, allocations: 0 / 376.3 MB, free: 11.53 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0012/0.05752, allocations: 1.236 MB / 377.6 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-05/0.05755, allocations: 44.06 kB / 377.6 MB, free: 10.19 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001151/0.05766, allocations: 39.95 kB / 377.6 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001472/0.05781, allocations: 140.7 kB / 377.8 MB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.422e-05/0.05783, allocations: 20 kB / 377.8 MB, free: 9.988 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003359/0.05817, allocations: 0.6655 MB / 378.5 MB, free: 9.297 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.05817, allocations: 4.031 kB / 378.5 MB, free: 9.293 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007042/0.05887, allocations: 0.718 MB / 379.2 MB, free: 8.547 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002165/0.05909, allocations: 208.6 kB / 379.4 MB, free: 8.344 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.924e-05/0.05917, allocations: 8 kB / 379.4 MB, free: 8.336 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.05939, allocations: 23.97 kB / 379.4 MB, free: 8.312 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.04e-05/0.05947, allocations: 43.94 kB / 379.5 MB, free: 8.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.614e-05/0.0595, allocations: 20 kB / 379.5 MB, free: 8.25 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009878/0.06048, allocations: 0.961 MB / 380.4 MB, free: 7.27 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.06048, allocations: 0 / 380.4 MB, free: 7.27 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005224/0.06101, allocations: 331.6 kB / 380.8 MB, free: 6.945 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001392/0.0624, allocations: 1.765 MB / 382.5 MB, free: 5.145 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007146/0.06311, allocations: 0.5045 MB / 383 MB, free: 4.629 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.06311, allocations: 0 / 383 MB, free: 4.629 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003277/0.06344, allocations: 283 kB / 383.3 MB, free: 4.34 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007446/0.06419, allocations: 318.1 kB / 383.6 MB, free: 4.027 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00834/0.07253, allocations: 8.961 MB / 392.6 MB, free: 10.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003191/0.07285, allocations: 0.5704 MB / 393.1 MB, free: 10.07 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003285/0.07317, allocations: 199.9 kB / 393.3 MB, free: 9.867 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000604/0.07378, allocations: 0.5628 MB / 393.9 MB, free: 9.305 MB / 362.7 MB Notification: Performance of SimCode: time 5.11e-07/0.07378, allocations: 0 / 393.9 MB, free: 9.305 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04192/0.1157, allocations: 36.23 MB / 430.1 MB, free: 5.469 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.924/9.04, allocations: 4.062 kB / 430.1 MB, free: 5.465 MB / 394.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.csv --start-time 0 --stop-time 1e-11 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 5.0025e-15 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mp.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.csv. Warning: Get data of variable mp.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.807241414673626]