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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 102.6 kB / 17.58 MB, free: 5.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 187.9 kB / 18.51 MB, free: 4.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.316/1.316, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 60.14 kB / 280.8 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06929/0.07041, allocations: 46.63 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007093/0.07753, allocations: 7.719 MB / 335.1 MB, free: 12.63 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01644/0.09398, allocations: 18.5 MB / 353.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006048/0.09461, allocations: 35.69 kB / 353.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001618/0.09626, allocations: 0.8284 MB / 354.5 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003541/0.09981, allocations: 1.77 MB / 356.2 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002517/0.1023, allocations: 1.291 MB / 357.5 MB, free: 6.102 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003557/0.1059, allocations: 3.171 MB / 360.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002877/0.1062, allocations: 220.6 kB / 360.9 MB, free: 2.684 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004179/0.1066, allocations: 0.4938 MB / 361.4 MB, free: 2.188 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004833/0.1071, allocations: 0.5474 MB / 362 MB, free: 1.637 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.511e-05/0.1072, allocations: 43.94 kB / 362 MB, free: 1.594 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002264/0.1095, allocations: 1.132 MB / 363.1 MB, free: 472 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001407/0.1096, allocations: 174.8 kB / 363.3 MB, free: 296 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005231/0.1102, allocations: 0.6871 MB / 364 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002378/0.1126, allocations: 2.211 MB / 366.2 MB, free: 13.38 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1126, allocations: 4 kB / 366.2 MB, free: 13.38 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1126, allocations: 0 / 366.2 MB, free: 13.38 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.85e-05/0.1126, allocations: 0 / 366.2 MB, free: 13.38 MB / 318.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.002664/0.1153, allocations: 2.024 MB / 368.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.1153, allocations: 8.031 kB / 368.2 MB, free: 11.28 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.383e-05/0.1154, allocations: 66.53 kB / 368.3 MB, free: 11.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001973/0.1156, allocations: 193.7 kB / 368.5 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00159/0.1172, allocations: 1.377 MB / 369.9 MB, free: 9.566 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.1172, allocations: 20.56 kB / 369.9 MB, free: 9.547 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.969e-05/0.1173, allocations: 31.91 kB / 369.9 MB, free: 9.516 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008309/0.1182, allocations: 433.2 kB / 370.3 MB, free: 9.082 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.1182, allocations: 3.984 kB / 370.3 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.148e-05/0.1182, allocations: 12 kB / 370.4 MB, free: 9.066 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.1182, allocations: 7.984 kB / 370.4 MB, free: 9.059 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001021/0.1193, allocations: 478.1 kB / 370.8 MB, free: 8.594 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00251/0.1218, allocations: 1.627 MB / 372.5 MB, free: 6.902 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009721/0.1228, allocations: 371.4 kB / 372.8 MB, free: 6.531 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007494/0.1235, allocations: 409.8 kB / 373.2 MB, free: 6.129 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1358/0.2593, allocations: 15.23 MB / 388.4 MB, free: 48.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005985/0.26, allocations: 256.8 kB / 388.7 MB, free: 48.33 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.994e-06/0.26, allocations: 0 / 388.7 MB, free: 48.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001902/0.2619, allocations: 0.84 MB / 389.5 MB, free: 48.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.741e-05/0.2619, allocations: 61 kB / 389.6 MB, free: 48.01 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001526/0.2635, allocations: 1.465 MB / 391.1 MB, free: 47.44 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.2635, allocations: 32.45 kB / 391.1 MB, free: 47.41 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004327/0.2639, allocations: 0.7256 MB / 391.8 MB, free: 46.85 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.143e-05/0.264, allocations: 94.23 kB / 391.9 MB, free: 46.78 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/0.2642, allocations: 125.2 kB / 392 MB, free: 46.72 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.296e-05/0.2642, allocations: 332.7 kB / 392.4 MB, free: 46.4 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004163/0.2646, allocations: 155.7 kB / 392.5 MB, free: 46.37 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004811/0.2651, allocations: 362.2 kB / 392.9 MB, free: 46.08 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008631/0.266, allocations: 0.5256 MB / 393.4 MB, free: 45.72 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.266, allocations: 2.688 kB / 393.4 MB, free: 45.72 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001267/0.2673, allocations: 0.7579 MB / 394.1 MB, free: 45.43 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.2673, allocations: 7.156 kB / 394.2 MB, free: 45.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.776e-05/0.2674, allocations: 42.12 kB / 394.2 MB, free: 45.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002755/0.2677, allocations: 141 kB / 394.3 MB, free: 45.4 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003839/0.268, allocations: 107 kB / 394.4 MB, free: 45.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004459/0.2685, allocations: 0.6822 MB / 395.1 MB, free: 44.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004855/0.269, allocations: 75.11 kB / 395.2 MB, free: 44.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.277e-05/0.2691, allocations: 34.47 kB / 395.2 MB, free: 44.78 MB / 318.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.000288/0.2694, allocations: 275.1 kB / 395.5 MB, free: 44.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.2695, allocations: 192.2 kB / 395.7 MB, free: 44.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001694/0.2712, allocations: 0.7507 MB / 396.4 MB, free: 44.23 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.2712, allocations: 4.547 kB / 396.4 MB, free: 44.23 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.2712, allocations: 0 / 396.4 MB, free: 44.23 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.2712, allocations: 1.5 kB / 396.4 MB, free: 44.23 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001686/0.2729, allocations: 1.319 MB / 397.8 MB, free: 43.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.9e-05/0.273, allocations: 38.47 kB / 397.8 MB, free: 43.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002297/0.2732, allocations: 45.95 kB / 397.8 MB, free: 43.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002017/0.2734, allocations: 123.4 kB / 398 MB, free: 43.29 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.209e-05/0.2735, allocations: 16.88 kB / 398 MB, free: 43.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003824/0.2739, allocations: 0.6718 MB / 398.7 MB, free: 42.7 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.2739, allocations: 5.312 kB / 398.7 MB, free: 42.7 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.275, allocations: 0.7116 MB / 399.4 MB, free: 42.28 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002612/0.2752, allocations: 289.8 kB / 399.6 MB, free: 42.04 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000147/0.2754, allocations: 8.125 kB / 399.7 MB, free: 42.03 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004028/0.2758, allocations: 28.41 kB / 399.7 MB, free: 42.02 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.2759, allocations: 46.77 kB / 399.7 MB, free: 42 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.701e-05/0.276, allocations: 17.59 kB / 399.7 MB, free: 42 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009052/0.2769, allocations: 0.9743 MB / 400.7 MB, free: 41.45 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2769, allocations: 0 / 400.7 MB, free: 41.45 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007147/0.2776, allocations: 327 kB / 401 MB, free: 41.42 MB / 318.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.001713/0.2793, allocations: 1.734 MB / 402.8 MB, free: 40.3 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.2804, allocations: 0.5301 MB / 403.3 MB, free: 40.04 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2804, allocations: 0 / 403.3 MB, free: 40.04 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005599/0.281, allocations: 285.5 kB / 403.6 MB, free: 39.9 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00081/0.2818, allocations: 272.9 kB / 403.9 MB, free: 39.74 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009642/0.2915, allocations: 10.09 MB / 413.9 MB, free: 29.08 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000405/0.2919, allocations: 1.149 MB / 415.1 MB, free: 27.9 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005705/0.2925, allocations: 195.1 kB / 415.3 MB, free: 27.71 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004102/0.2929, allocations: 0.5657 MB / 415.8 MB, free: 27.14 MB / 318.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2929, allocations: 0 / 415.8 MB, free: 27.14 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8515/1.144, allocations: 35.12 MB / 451 MB, free: 7.93 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.11/15.26, allocations: 11.86 kB / 451 MB, free: 7.918 MB / 334.1 MB (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) 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) Reference file matches