Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008669/0.0008669, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009325/0.0009325, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8827/0.8827, allocations: 177 MB / 204.1 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.132e-06/1.132e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.548e-06/1.068e-05, allocations: 3.125 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.004745/0.004756, allocations: 6.932 MB / 331.4 MB, free: 8.914 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01251/0.01727, allocations: 16.7 MB / 348.2 MB, free: 8.145 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000682/0.01795, allocations: 94.94 kB / 348.2 MB, free: 8.051 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001783/0.01974, allocations: 0.767 MB / 349 MB, free: 7.277 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003018/0.02275, allocations: 1.866 MB / 350.9 MB, free: 5.398 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002/0.02475, allocations: 1.336 MB / 352.2 MB, free: 4.059 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002698/0.02745, allocations: 3.411 MB / 355.6 MB, free: 0.6367 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002207/0.02767, allocations: 128.8 kB / 355.7 MB, free: 500 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008244/0.0285, allocations: 0.7949 MB / 356.5 MB, free: 15.69 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000341/0.02884, allocations: 410.5 kB / 356.9 MB, free: 15.29 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.543e-05/0.02889, allocations: 44 kB / 357 MB, free: 15.25 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001505/0.0304, allocations: 1.171 MB / 358.2 MB, free: 14.07 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.843e-05/0.03049, allocations: 174.8 kB / 358.3 MB, free: 13.9 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002419/0.03074, allocations: 378.8 kB / 358.7 MB, free: 13.53 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00176/0.0325, allocations: 2.27 MB / 361 MB, free: 11.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.0325, allocations: 0 / 361 MB, free: 11.25 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.03251, allocations: 3.938 kB / 361 MB, free: 11.25 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.311e-05/0.03256, allocations: 0 / 361 MB, free: 11.25 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003141/0.0357, allocations: 1.971 MB / 362.9 MB, free: 9.234 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.03575, allocations: 15.98 kB / 363 MB, free: 9.219 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.145e-05/0.03584, allocations: 70.45 kB / 363 MB, free: 9.141 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002601/0.0361, allocations: 202.7 kB / 363.2 MB, free: 8.941 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001988/0.03809, allocations: 1.249 MB / 364.5 MB, free: 7.609 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.39e-05/0.03812, allocations: 20.66 kB / 364.5 MB, free: 7.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.706e-05/0.03819, allocations: 28 kB / 364.5 MB, free: 7.562 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007004/0.03889, allocations: 433.8 kB / 364.9 MB, free: 7.133 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.0389, allocations: 4 kB / 365 MB, free: 7.129 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.8e-05/0.03893, allocations: 4 kB / 365 MB, free: 7.125 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.03894, allocations: 19.92 kB / 365 MB, free: 7.105 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006244/0.03957, allocations: 474.4 kB / 365.4 MB, free: 6.641 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00182/0.04139, allocations: 1.484 MB / 366.9 MB, free: 5.098 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005652/0.04195, allocations: 347.4 kB / 367.3 MB, free: 4.75 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004344/0.04239, allocations: 373.5 kB / 367.6 MB, free: 4.383 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009076/0.05146, allocations: 6.981 MB / 374.6 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004138/0.05188, allocations: 259.1 kB / 374.9 MB, free: 12.93 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 2.334e-06/0.05188, allocations: 0 / 374.9 MB, free: 12.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.001252/0.05313, allocations: 0.7781 MB / 375.6 MB, free: 12.14 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.22e-05/0.05317, allocations: 59.39 kB / 375.7 MB, free: 12.07 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001232/0.05441, allocations: 1.471 MB / 377.2 MB, free: 10.57 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.186e-05/0.05444, allocations: 29.7 kB / 377.2 MB, free: 10.53 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004143/0.05485, allocations: 0.7193 MB / 377.9 MB, free: 9.809 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.496e-05/0.05492, allocations: 103.2 kB / 378 MB, free: 9.707 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.05504, allocations: 122 kB / 378.1 MB, free: 9.582 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.512e-05/0.05512, allocations: 329.9 kB / 378.5 MB, free: 9.254 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002533/0.05538, allocations: 160.8 kB / 378.6 MB, free: 9.098 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003245/0.0557, allocations: 362.9 kB / 379 MB, free: 8.648 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005879/0.05629, allocations: 0.5411 MB / 379.5 MB, free: 8.016 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.05629, allocations: 0 / 379.5 MB, free: 8.016 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008695/0.05716, allocations: 0.7483 MB / 380.3 MB, free: 7.258 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.05718, allocations: 8 kB / 380.3 MB, free: 7.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003077/0.05749, allocations: 40 kB / 380.3 MB, free: 7.211 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002316/0.05772, allocations: 132.8 kB / 380.4 MB, free: 7.078 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002241/0.05795, allocations: 112.1 kB / 380.5 MB, free: 6.969 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004793/0.05843, allocations: 0.685 MB / 381.2 MB, free: 6.258 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003852/0.05881, allocations: 67.59 kB / 381.3 MB, free: 6.191 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.729e-05/0.05887, allocations: 36 kB / 381.3 MB, free: 6.156 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.0003753/0.05925, allocations: 274.4 kB / 381.6 MB, free: 5.879 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001488/0.05939, allocations: 198.8 kB / 381.8 MB, free: 5.684 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00118/0.06057, allocations: 0.7347 MB / 382.5 MB, free: 4.938 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.06058, allocations: 7.938 kB / 382.5 MB, free: 4.93 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.06059, allocations: 7.938 kB / 382.5 MB, free: 4.922 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.0606, allocations: 0 / 382.5 MB, free: 4.922 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001383/0.06198, allocations: 1.236 MB / 383.8 MB, free: 3.621 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-05/0.06201, allocations: 36 kB / 383.8 MB, free: 3.586 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001259/0.06213, allocations: 43.95 kB / 383.9 MB, free: 3.543 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001514/0.06228, allocations: 124.8 kB / 384 MB, free: 3.418 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.232e-05/0.06231, allocations: 16 kB / 384 MB, free: 3.402 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000394/0.0627, allocations: 0.6734 MB / 384.7 MB, free: 2.703 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.0627, allocations: 0 / 384.7 MB, free: 2.703 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008365/0.06354, allocations: 0.7173 MB / 385.4 MB, free: 1.957 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003127/0.06385, allocations: 220.5 kB / 385.6 MB, free: 1.742 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.508e-05/0.06395, allocations: 8 kB / 385.6 MB, free: 1.734 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002359/0.06418, allocations: 27.95 kB / 385.6 MB, free: 1.707 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.38e-05/0.06428, allocations: 43.94 kB / 385.7 MB, free: 1.664 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.1e-05/0.06431, allocations: 20 kB / 385.7 MB, free: 1.645 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008512/0.06516, allocations: 0.961 MB / 386.7 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.06516, allocations: 0 / 386.7 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006556/0.06581, allocations: 331.6 kB / 387 MB, free: 348 kB / 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.001856/0.06767, allocations: 1.776 MB / 388.8 MB, free: 14.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007879/0.06846, allocations: 0.4929 MB / 389.3 MB, free: 14.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.06846, allocations: 3.938 kB / 389.3 MB, free: 14.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003426/0.0688, allocations: 279.4 kB / 389.5 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008066/0.06961, allocations: 310.9 kB / 389.8 MB, free: 13.42 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008998/0.07861, allocations: 8.951 MB / 398.8 MB, free: 4.082 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000327/0.07893, allocations: 0.5705 MB / 399.4 MB, free: 3.473 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003848/0.07932, allocations: 199.9 kB / 399.5 MB, free: 3.273 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003843/0.0797, allocations: 0.5628 MB / 400.1 MB, free: 2.711 MB / 362.7 MB Notification: Performance of SimCode: time 1.232e-06/0.07971, allocations: 8 kB / 400.1 MB, free: 2.703 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04386/0.1236, allocations: 36.24 MB / 436.4 MB, free: 14.73 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.823/8.947, allocations: 8 kB / 436.4 MB, free: 14.73 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.csv. Warning: Get data of variable mp.S.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.667870500124991]