Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",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.001617/0.001617, allocations: 107 kB / 16.92 MB, free: 5.895 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.00193/0.00193, allocations: 191.3 kB / 17.85 MB, free: 5.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.378/2.378, allocations: 222.9 MB / 241.6 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001844, allocations: 47.86 kB / 300.7 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1317, allocations: 49.44 MB / 350.2 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.02327/0.155, allocations: 14.7 MB / 364.9 MB, free: 5.586 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2866/0.4417, allocations: 20.68 MB / 385.5 MB, free: 7.844 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00353/0.4452, allocations: 26.84 kB / 385.6 MB, free: 7.836 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006024/0.4513, allocations: 1.233 MB / 386.8 MB, free: 7.203 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01433/0.4657, allocations: 2.297 MB / 389.1 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01062/0.4764, allocations: 1.436 MB / 390.5 MB, free: 5.191 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01706/0.4935, allocations: 6.469 MB / 397 MB, free: 2.695 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001473/0.495, allocations: 456.2 kB / 397.5 MB, free: 2.461 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002723/0.4978, allocations: 1.068 MB / 398.5 MB, free: 1.949 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002814/0.5006, allocations: 1.106 MB / 399.6 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006388/0.5013, allocations: 77 kB / 399.7 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009421/0.5107, allocations: 1.481 MB / 401.2 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008104/0.5116, allocations: 330.7 kB / 401.5 MB, free: 424 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003397/0.515, allocations: 1.372 MB / 402.9 MB, free: 15.51 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01008/0.5251, allocations: 3.736 MB / 406.6 MB, free: 12.28 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.5252, allocations: 4 kB / 406.6 MB, free: 12.28 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.5252, allocations: 0 / 406.6 MB, free: 12.28 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001137/0.5253, allocations: 0 / 406.6 MB, free: 12.28 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.009395/0.5347, allocations: 3.683 MB / 410.3 MB, free: 8.52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.717e-05/0.5348, allocations: 8.031 kB / 410.3 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002437/0.5351, allocations: 106.4 kB / 410.4 MB, free: 8.398 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008349/0.5359, allocations: 395.2 kB / 410.8 MB, free: 8.008 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006339/0.5423, allocations: 2.433 MB / 413.2 MB, free: 5.496 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.269e-05/0.5424, allocations: 37 kB / 413.3 MB, free: 5.461 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002363/0.5426, allocations: 59.78 kB / 413.3 MB, free: 5.402 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002428/0.545, allocations: 0.7343 MB / 414.1 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.5451, allocations: 0 / 414.1 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001267/0.5452, allocations: 23.98 kB / 414.1 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.615e-05/0.5453, allocations: 16 kB / 414.1 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00282/0.5481, allocations: 0.8202 MB / 414.9 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009714/0.5578, allocations: 3.051 MB / 418 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002175/0.5601, allocations: 0.576 MB / 418.5 MB, free: 80 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001866/0.562, allocations: 0.6489 MB / 419.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05083/0.6128, allocations: 30.12 MB / 449.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001328/0.6142, allocations: 371.6 kB / 449.7 MB, free: 12.83 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 4.539e-06/0.6142, allocations: 0 / 449.7 MB, free: 12.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.004306/0.6186, allocations: 1.089 MB / 450.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.565e-05/0.6187, allocations: 59.41 kB / 450.8 MB, free: 11.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006982/0.6257, allocations: 2.939 MB / 453.8 MB, free: 8.711 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001243/0.6258, allocations: 33.7 kB / 453.8 MB, free: 8.672 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002201/0.628, allocations: 1.485 MB / 455.3 MB, free: 7.176 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000299/0.6284, allocations: 165.7 kB / 455.4 MB, free: 7.012 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005467/0.6289, allocations: 230.1 kB / 455.7 MB, free: 6.781 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.6291, allocations: 333.9 kB / 456 MB, free: 6.449 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001109/0.6302, allocations: 245.9 kB / 456.2 MB, free: 6.211 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001539/0.6318, allocations: 0.6059 MB / 456.8 MB, free: 5.426 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002664/0.6345, allocations: 0.8896 MB / 457.7 MB, free: 4.367 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.498e-05/0.6345, allocations: 0 / 457.7 MB, free: 4.367 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.004017/0.6386, allocations: 1.226 MB / 459 MB, free: 3.133 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.933e-05/0.6386, allocations: 15.94 kB / 459 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001927/0.6388, allocations: 88.11 kB / 459.1 MB, free: 3.031 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.507e-05/0.6389, allocations: 19.94 kB / 459.1 MB, free: 3.012 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00128/0.6402, allocations: 203.6 kB / 459.3 MB, free: 2.812 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.441e-05/0.6402, allocations: 21.5 kB / 459.3 MB, free: 2.793 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001903/0.6422, allocations: 115 kB / 459.4 MB, free: 2.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000178/0.6424, allocations: 64 kB / 459.5 MB, free: 2.617 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001264/0.6436, allocations: 433.5 kB / 459.9 MB, free: 2.184 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008542/0.6445, allocations: 383.3 kB / 460.3 MB, free: 1.805 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005503/0.65, allocations: 1.201 MB / 461.5 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-05/0.6501, allocations: 8 kB / 461.5 MB, free: 0.582 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.6501, allocations: 0 / 461.5 MB, free: 0.582 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/0.6501, allocations: 3.984 kB / 461.5 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006255/0.6564, allocations: 2.092 MB / 463.6 MB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001781/0.6566, allocations: 68 kB / 463.6 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008548/0.6575, allocations: 92.86 kB / 463.7 MB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.381e-05/0.6575, allocations: 4 kB / 463.7 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001089/0.6576, allocations: 36.05 kB / 463.8 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.502e-06/0.6576, allocations: 3.938 kB / 463.8 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.6577, allocations: 4 kB / 463.8 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004158/0.6618, allocations: 1.294 MB / 465.1 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001402/0.6633, allocations: 476.1 kB / 465.5 MB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007252/0.664, allocations: 13 kB / 465.5 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001471/0.6655, allocations: 36.02 kB / 465.6 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002549/0.6658, allocations: 55.95 kB / 465.6 MB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001304/0.6659, allocations: 39.98 kB / 465.7 MB, free: 12.26 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.005084/0.671, allocations: 1.903 MB / 467.6 MB, free: 10.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.671, allocations: 0 / 467.6 MB, free: 10.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00265/0.6737, allocations: 0.5855 MB / 468.2 MB, free: 9.77 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * 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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006546/0.6803, allocations: 2.531 MB / 470.7 MB, free: 7.207 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003027/0.6833, allocations: 0.829 MB / 471.5 MB, free: 6.348 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.179e-06/0.6834, allocations: 0 / 471.5 MB, free: 6.348 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001354/0.6847, allocations: 443 kB / 472 MB, free: 5.891 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005114/0.6899, allocations: 0.6301 MB / 472.6 MB, free: 5.258 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05104/0.7409, allocations: 21 MB / 493.6 MB, free: 14.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002162/0.7431, allocations: 1.665 MB / 495.2 MB, free: 12.42 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002501/0.7457, allocations: 361.1 kB / 495.6 MB, free: 12.06 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002224/0.7479, allocations: 1.21 MB / 496.8 MB, free: 10.85 MB / 414.1 MB Notification: Performance of SimCode: time 1.332e-06/0.748, allocations: 0 / 496.8 MB, free: 10.85 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4284/1.176, allocations: 60.16 MB / 0.5439 GB, free: 147 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.64/16.82, allocations: 6.75 kB / 0.5439 GB, free: 147 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches