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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001337/0.001337, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00119/0.00119, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 59.38 kB / 307 MB, free: 0.4922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.082/0.08323, allocations: 50.53 MB / 357.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008126/0.09139, allocations: 8.038 MB / 365.6 MB, free: 5.883 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1543/0.2457, allocations: 19.46 MB / 385.1 MB, free: 5.914 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00111/0.2468, allocations: 30.41 kB / 385.1 MB, free: 5.898 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002339/0.2493, allocations: 0.8499 MB / 386 MB, free: 5.465 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005446/0.2547, allocations: 1.795 MB / 387.7 MB, free: 4.555 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0041/0.2588, allocations: 1.333 MB / 389.1 MB, free: 3.867 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004523/0.2634, allocations: 3.282 MB / 392.4 MB, free: 2.656 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003332/0.2637, allocations: 229.8 kB / 392.6 MB, free: 2.535 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006614/0.2644, allocations: 0.5433 MB / 393.1 MB, free: 2.309 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000506/0.2649, allocations: 0.5533 MB / 393.7 MB, free: 2.035 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001046/0.265, allocations: 42.5 kB / 393.7 MB, free: 2.035 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003798/0.2688, allocations: 1.448 MB / 395.2 MB, free: 1.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000147/0.269, allocations: 179.7 kB / 395.3 MB, free: 1.465 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005402/0.2695, allocations: 0.6861 MB / 396 MB, free: 1.031 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002646/0.2722, allocations: 2.193 MB / 398.2 MB, free: 15.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2722, allocations: 1.375 kB / 398.2 MB, free: 15.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2722, allocations: 3.938 kB / 398.2 MB, free: 15.81 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.717e-05/0.2722, allocations: 0 / 398.2 MB, free: 15.81 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.003107/0.2754, allocations: 2.012 MB / 400.2 MB, free: 14.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.2754, allocations: 9.219 kB / 400.3 MB, free: 14.27 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.784e-05/0.2755, allocations: 68.78 kB / 400.3 MB, free: 14.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002339/0.2757, allocations: 196.5 kB / 400.5 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001826/0.2776, allocations: 1.362 MB / 401.9 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.969e-05/0.2776, allocations: 23.31 kB / 401.9 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.952e-05/0.2777, allocations: 24.91 kB / 401.9 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008585/0.2785, allocations: 432.9 kB / 402.3 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.2786, allocations: 0 / 402.3 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.298e-05/0.2786, allocations: 6.812 kB / 402.4 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.397e-05/0.2786, allocations: 10.78 kB / 402.4 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/0.2797, allocations: 483.8 kB / 402.8 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002553/0.2823, allocations: 1.626 MB / 404.5 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009265/0.2832, allocations: 372 kB / 404.8 MB, free: 11.16 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000713/0.2839, allocations: 408.4 kB / 405.2 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01439/0.2983, allocations: 15.53 MB / 420.8 MB, free: 9.828 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006069/0.299, allocations: 256.1 kB / 421 MB, free: 9.566 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.224e-06/0.299, allocations: 4 kB / 421 MB, free: 9.562 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002044/0.301, allocations: 0.8368 MB / 421.8 MB, free: 8.695 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.3011, allocations: 63.39 kB / 421.9 MB, free: 8.621 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001598/0.3027, allocations: 1.451 MB / 423.4 MB, free: 7.133 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.596e-05/0.3027, allocations: 33.7 kB / 423.4 MB, free: 7.094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005757/0.3033, allocations: 0.7187 MB / 424.1 MB, free: 6.371 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.93e-05/0.3034, allocations: 94.73 kB / 424.2 MB, free: 6.277 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001715/0.3036, allocations: 134 kB / 424.3 MB, free: 6.141 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.3037, allocations: 325.9 kB / 424.6 MB, free: 5.816 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004738/0.3042, allocations: 161 kB / 424.8 MB, free: 5.656 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000576/0.3048, allocations: 367.1 kB / 425.2 MB, free: 5.211 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001034/0.3058, allocations: 0.5178 MB / 425.7 MB, free: 4.602 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.3058, allocations: 0 / 425.7 MB, free: 4.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001455/0.3073, allocations: 0.7648 MB / 426.4 MB, free: 3.828 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.3073, allocations: 8 kB / 426.5 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.09e-05/0.3074, allocations: 47.98 kB / 426.5 MB, free: 3.773 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000293/0.3077, allocations: 140.8 kB / 426.6 MB, free: 3.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000421/0.3081, allocations: 111.7 kB / 426.7 MB, free: 3.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005759/0.3087, allocations: 0.6773 MB / 427.4 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006013/0.3093, allocations: 71.41 kB / 427.5 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.657e-05/0.3094, allocations: 32 kB / 427.5 MB, free: 2.719 MB / 334.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.0003455/0.3097, allocations: 284.8 kB / 427.8 MB, free: 2.434 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001835/0.3099, allocations: 185.8 kB / 428 MB, free: 2.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001947/0.3119, allocations: 0.7409 MB / 428.7 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.3119, allocations: 4 kB / 428.7 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3119, allocations: 4 kB / 428.7 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.3119, allocations: 0 / 428.7 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002081/0.314, allocations: 1.303 MB / 430 MB, free: 120 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.084e-05/0.3141, allocations: 43.92 kB / 430.1 MB, free: 76 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002591/0.3143, allocations: 43.95 kB / 430.1 MB, free: 32 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002406/0.3146, allocations: 125 kB / 430.2 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.598e-05/0.3146, allocations: 20 kB / 430.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005511/0.3152, allocations: 0.6732 MB / 430.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3152, allocations: 0 / 430.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001299/0.3165, allocations: 0.7094 MB / 431.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003463/0.3169, allocations: 282.8 kB / 431.9 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001626/0.317, allocations: 8 kB / 431.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004331/0.3175, allocations: 23.97 kB / 432 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.3176, allocations: 39.95 kB / 432 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-05/0.3176, allocations: 20 kB / 432 MB, free: 14.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00109/0.3187, allocations: 0.961 MB / 433 MB, free: 13.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3187, allocations: 0 / 433 MB, free: 13.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008479/0.3196, allocations: 335.8 kB / 433.3 MB, free: 12.75 MB / 350.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.002246/0.3219, allocations: 1.741 MB / 435 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00129/0.3232, allocations: 0.5117 MB / 435.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3232, allocations: 4 kB / 435.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006623/0.3238, allocations: 299.8 kB / 435.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001456/0.3253, allocations: 318.2 kB / 436.2 MB, free: 9.832 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01284/0.3382, allocations: 10.02 MB / 446.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006243/0.3388, allocations: 1.145 MB / 447.3 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007181/0.3396, allocations: 203.9 kB / 447.5 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00057/0.3401, allocations: 0.5657 MB / 448.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3401, allocations: 0 / 448.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05677/0.3969, allocations: 34.97 MB / 483.1 MB, free: 10.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.73, allocations: 7.922 kB / 483.1 MB, free: 10.23 MB / 398.1 MB (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) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches