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.001426/0.001426, allocations: 127.4 kB / 17.79 MB, free: 5.242 MB / 14.72 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.001735/0.001735, allocations: 211.6 kB / 20.75 MB, free: 2.293 MB / 14.72 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 1.488/1.488, allocations: 230.4 MB / 254 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001911/0.001911, allocations: 67.88 kB / 373 MB, free: 10.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.109, allocations: 53.38 MB / 426.4 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.2289/0.3378, allocations: 8.058 MB / 434.4 MB, free: 6.879 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02391/0.3618, allocations: 19.53 MB / 453.9 MB, free: 9.469 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0017/0.3635, allocations: 98.56 kB / 454 MB, free: 9.398 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002944/0.3664, allocations: 0.8553 MB / 454.9 MB, free: 8.953 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007702/0.3741, allocations: 1.819 MB / 456.7 MB, free: 7.895 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006198/0.3803, allocations: 1.34 MB / 458.1 MB, free: 7.203 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00633/0.3866, allocations: 3.309 MB / 461.4 MB, free: 5.988 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003458/0.387, allocations: 126 kB / 461.5 MB, free: 5.902 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00105/0.388, allocations: 0.5853 MB / 462.1 MB, free: 5.676 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007103/0.3887, allocations: 0.5703 MB / 462.6 MB, free: 5.391 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001005/0.3888, allocations: 40.28 kB / 462.7 MB, free: 5.391 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004699/0.3935, allocations: 1.446 MB / 464.1 MB, free: 4.945 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002169/0.3938, allocations: 171.2 kB / 464.3 MB, free: 4.828 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008273/0.3946, allocations: 0.6739 MB / 465 MB, free: 4.406 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003776/0.3984, allocations: 2.226 MB / 467.2 MB, free: 3.133 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.3984, allocations: 1 kB / 467.2 MB, free: 3.133 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3984, allocations: 0 / 467.2 MB, free: 3.133 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.952e-05/0.3984, allocations: 0 / 467.2 MB, free: 3.133 MB / 366.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.003374/0.4018, allocations: 2.078 MB / 469.3 MB, free: 1.527 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.4018, allocations: 8.906 kB / 469.3 MB, free: 1.527 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.581e-05/0.4019, allocations: 64.88 kB / 469.3 MB, free: 1.465 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002634/0.4022, allocations: 201.2 kB / 469.5 MB, free: 1.359 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001919/0.4041, allocations: 1.364 MB / 470.9 MB, free: 276 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.877e-05/0.4041, allocations: 22.83 kB / 470.9 MB, free: 264 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.862e-05/0.4042, allocations: 25.5 kB / 471 MB, free: 256 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009805/0.4052, allocations: 436.7 kB / 471.4 MB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.4052, allocations: 3.938 kB / 471.4 MB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.447e-05/0.4052, allocations: 11.28 kB / 471.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.486e-05/0.4052, allocations: 11.09 kB / 471.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001129/0.4064, allocations: 472.1 kB / 471.9 MB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002858/0.4092, allocations: 1.62 MB / 473.5 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009588/0.4102, allocations: 341.6 kB / 473.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007541/0.4109, allocations: 376.3 kB / 474.2 MB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01648/0.4274, allocations: 15.53 MB / 489.7 MB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006746/0.4281, allocations: 255.2 kB / 490 MB, free: 14.54 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.425e-06/0.4281, allocations: 0 / 490 MB, free: 14.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002353/0.4304, allocations: 0.8417 MB / 490.8 MB, free: 13.67 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.484e-05/0.4305, allocations: 67.34 kB / 490.9 MB, free: 13.59 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001888/0.4324, allocations: 1.455 MB / 492.3 MB, free: 12.1 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.489e-05/0.4324, allocations: 33.7 kB / 492.4 MB, free: 12.06 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006525/0.4331, allocations: 0.7232 MB / 493.1 MB, free: 11.33 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.4332, allocations: 103.1 kB / 493.2 MB, free: 11.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002037/0.4334, allocations: 134 kB / 493.3 MB, free: 11.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.4335, allocations: 326 kB / 493.6 MB, free: 10.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004757/0.434, allocations: 153 kB / 493.8 MB, free: 10.62 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006284/0.4346, allocations: 359.4 kB / 494.1 MB, free: 10.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001109/0.4358, allocations: 0.5372 MB / 494.7 MB, free: 9.551 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/0.4358, allocations: 4 kB / 494.7 MB, free: 9.547 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001718/0.4375, allocations: 0.7563 MB / 495.4 MB, free: 8.781 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.4375, allocations: 8 kB / 495.4 MB, free: 8.773 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.669e-05/0.4376, allocations: 47.98 kB / 495.5 MB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003277/0.4379, allocations: 124.8 kB / 495.6 MB, free: 8.602 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004226/0.4383, allocations: 108 kB / 495.7 MB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007105/0.439, allocations: 0.6773 MB / 496.4 MB, free: 7.793 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000833/0.4399, allocations: 71.59 kB / 496.5 MB, free: 7.723 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-05/0.4399, allocations: 40 kB / 496.5 MB, free: 7.684 MB / 398.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.0004786/0.4404, allocations: 273.7 kB / 496.8 MB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002311/0.4406, allocations: 198.7 kB / 497 MB, free: 7.211 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001903/0.4425, allocations: 0.7399 MB / 497.7 MB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.4426, allocations: 0 / 497.7 MB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.4426, allocations: 0 / 497.7 MB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.4426, allocations: 7.938 kB / 497.7 MB, free: 6.461 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002509/0.4451, allocations: 1.312 MB / 499 MB, free: 5.082 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.128e-05/0.4451, allocations: 39.98 kB / 499.1 MB, free: 5.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002561/0.4454, allocations: 44.02 kB / 499.1 MB, free: 5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002641/0.4456, allocations: 124.8 kB / 499.2 MB, free: 4.875 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.062e-05/0.4457, allocations: 27.92 kB / 499.3 MB, free: 4.848 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006627/0.4464, allocations: 0.6632 MB / 499.9 MB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.4464, allocations: 0 / 499.9 MB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001487/0.4479, allocations: 0.7173 MB / 0.4889 GB, free: 3.414 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005716/0.4484, allocations: 289.6 kB / 0.4892 GB, free: 3.113 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001461/0.4486, allocations: 7.984 kB / 0.4892 GB, free: 3.105 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004306/0.449, allocations: 27.97 kB / 0.4892 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001268/0.4491, allocations: 51.83 kB / 0.4893 GB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.855e-05/0.4492, allocations: 16 kB / 0.4893 GB, free: 3.012 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001301/0.4505, allocations: 0.961 MB / 0.4902 GB, free: 2.031 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4505, allocations: 0 / 0.4902 GB, free: 2.031 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009842/0.4515, allocations: 335.5 kB / 0.4905 GB, free: 1.703 MB / 398.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.002721/0.4542, allocations: 1.736 MB / 0.4922 GB, free: 15.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001425/0.4556, allocations: 0.5005 MB / 0.4927 GB, free: 15.43 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.4556, allocations: 0 / 0.4927 GB, free: 15.43 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007078/0.4563, allocations: 279.2 kB / 0.493 GB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001399/0.4577, allocations: 308.9 kB / 0.4933 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01398/0.4717, allocations: 8.999 MB / 0.5021 GB, free: 5.465 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007742/0.4725, allocations: 1.149 MB / 0.5032 GB, free: 4.285 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005683/0.473, allocations: 201 kB / 0.5034 GB, free: 4.086 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006246/0.4737, allocations: 0.5579 MB / 0.5039 GB, free: 3.531 MB / 414.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4737, allocations: 0 / 0.5039 GB, free: 3.531 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08234/0.556, allocations: 35.45 MB / 0.5385 GB, free: 284 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.83/15.39, allocations: 13.42 kB / 0.5386 GB, free: 272 kB / 446.1 MB " [Timeout remaining time 644] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/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: 18.05548486195039]