Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.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.001301/0.001301, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.001469/0.001469, allocations: 209.4 kB / 24.47 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.418/1.418, allocations: 207.7 MB / 235.3 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001807/0.001807, allocations: 58.58 kB / 347.2 MB, free: 9.895 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.2525, allocations: 49.16 MB / 396.3 MB, free: 8.891 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.00634/0.2588, allocations: 6.651 MB / 403 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01856/0.2774, allocations: 15.88 MB / 418.9 MB, free: 9.207 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001454/0.2789, allocations: 102.4 kB / 419 MB, free: 9.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00238/0.2812, allocations: 0.7301 MB / 419.7 MB, free: 8.617 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006283/0.2875, allocations: 1.795 MB / 421.5 MB, free: 7.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004857/0.2924, allocations: 1.259 MB / 422.8 MB, free: 6.309 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00626/0.2986, allocations: 3.205 MB / 426 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004869/0.2991, allocations: 125.8 kB / 426.1 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009481/0.3001, allocations: 0.5379 MB / 426.6 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008645/0.3009, allocations: 0.5277 MB / 427.2 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001121/0.3011, allocations: 41.5 kB / 427.2 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003493/0.3045, allocations: 1.063 MB / 428.3 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001821/0.3047, allocations: 170.8 kB / 428.4 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000559/0.3053, allocations: 0.5007 MB / 428.9 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003265/0.3086, allocations: 2.256 MB / 431.2 MB, free: 176 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.3086, allocations: 0 / 431.2 MB, free: 176 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.3086, allocations: 0 / 431.2 MB, free: 176 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.584e-05/0.3086, allocations: 0 / 431.2 MB, free: 176 kB / 334.1 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.003183/0.3118, allocations: 2.006 MB / 433.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.3118, allocations: 15.98 kB / 433.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.39e-05/0.3119, allocations: 70.41 kB / 433.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002472/0.3121, allocations: 206.7 kB / 433.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002081/0.3142, allocations: 1.253 MB / 434.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.273e-05/0.3142, allocations: 24.66 kB / 434.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.228e-05/0.3143, allocations: 27.98 kB / 434.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009191/0.3152, allocations: 433.8 kB / 435.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.3153, allocations: 3.984 kB / 435.2 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.154e-05/0.3153, allocations: 15.98 kB / 435.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.733e-05/0.3153, allocations: 12 kB / 435.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00108/0.3164, allocations: 474.4 kB / 435.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002856/0.3192, allocations: 1.496 MB / 437.2 MB, free: 9.965 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00091/0.3202, allocations: 335.4 kB / 437.5 MB, free: 9.625 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007611/0.3209, allocations: 381.7 kB / 437.9 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01357/0.3345, allocations: 6.992 MB / 444.9 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006275/0.3351, allocations: 251.2 kB / 445.1 MB, free: 1.789 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.184e-06/0.3351, allocations: 0 / 445.1 MB, free: 1.789 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002079/0.3372, allocations: 0.7702 MB / 445.9 MB, free: 1.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.432e-05/0.3372, allocations: 63.41 kB / 446 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001848/0.3391, allocations: 1.468 MB / 447.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.236e-05/0.3391, allocations: 33.7 kB / 447.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006953/0.3398, allocations: 0.7349 MB / 448.2 MB, free: 14.65 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.3399, allocations: 95.27 kB / 448.3 MB, free: 14.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001829/0.3401, allocations: 130 kB / 448.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.3403, allocations: 329.9 kB / 448.7 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004516/0.3407, allocations: 160.9 kB / 448.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006129/0.3413, allocations: 363.5 kB / 449.3 MB, free: 13.49 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.3424, allocations: 0.5333 MB / 449.8 MB, free: 12.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.3424, allocations: 4 kB / 449.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001492/0.3439, allocations: 0.7559 MB / 450.5 MB, free: 12.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.3439, allocations: 8 kB / 450.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.677e-05/0.344, allocations: 43.98 kB / 450.6 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003277/0.3443, allocations: 129.4 kB / 450.7 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000415/0.3447, allocations: 111.8 kB / 450.8 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007048/0.3454, allocations: 0.6966 MB / 451.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005351/0.346, allocations: 75.53 kB / 451.6 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.517e-05/0.3461, allocations: 32 kB / 451.6 MB, free: 10.98 MB / 366.1 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.0004182/0.3465, allocations: 281.6 kB / 451.9 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001995/0.3467, allocations: 194.8 kB / 452.1 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001826/0.3485, allocations: 0.7425 MB / 452.8 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.3485, allocations: 4 kB / 452.8 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.3485, allocations: 3.938 kB / 452.8 MB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.3485, allocations: 3.984 kB / 452.9 MB, free: 9.738 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00228/0.3508, allocations: 1.237 MB / 454.1 MB, free: 8.438 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.416e-05/0.3509, allocations: 36 kB / 454.1 MB, free: 8.402 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002441/0.3511, allocations: 43.95 kB / 454.2 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002443/0.3513, allocations: 132.8 kB / 454.3 MB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.603e-05/0.3514, allocations: 16 kB / 454.3 MB, free: 8.211 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006473/0.352, allocations: 0.6733 MB / 455 MB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.352, allocations: 0 / 455 MB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/0.3534, allocations: 0.7252 MB / 455.7 MB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000452/0.3539, allocations: 216.5 kB / 455.9 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000151/0.354, allocations: 8 kB / 455.9 MB, free: 6.535 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004302/0.3544, allocations: 27.97 kB / 456 MB, free: 6.508 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.3546, allocations: 39.94 kB / 456 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.26e-05/0.3546, allocations: 27.94 kB / 456 MB, free: 6.441 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001237/0.3558, allocations: 0.9652 MB / 457 MB, free: 5.457 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3558, allocations: 0 / 457 MB, free: 5.457 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008733/0.3567, allocations: 339.5 kB / 457.3 MB, free: 5.125 MB / 366.1 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.002526/0.3592, allocations: 1.745 MB / 459.1 MB, free: 3.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001289/0.3605, allocations: 0.4966 MB / 459.6 MB, free: 2.832 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3605, allocations: 3.938 kB / 459.6 MB, free: 2.828 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006504/0.3612, allocations: 275.2 kB / 459.8 MB, free: 2.547 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009075/0.3621, allocations: 260.6 kB / 460.1 MB, free: 2.289 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01274/0.3748, allocations: 9.046 MB / 469.1 MB, free: 8.859 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000563/0.3754, allocations: 0.5628 MB / 469.7 MB, free: 8.258 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005487/0.3759, allocations: 199.9 kB / 469.9 MB, free: 8.059 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006416/0.3766, allocations: 0.5657 MB / 470.5 MB, free: 7.492 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3766, allocations: 0 / 470.5 MB, free: 7.492 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07771/0.4543, allocations: 36.36 MB / 0.4949 GB, free: 3.012 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.03/14.49, allocations: 0 / 0.4949 GB, free: 3.012 MB / 414.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.csv. Warning: Get data of variable mp.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.993820722214878]