Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001449/0.001449, allocations: 104.1 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.001778/0.001778, 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.357/1.357, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 59.72 kB / 307 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08232/0.08351, allocations: 50.54 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.1609/0.2445, allocations: 14.7 MB / 372.3 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0182/0.2627, allocations: 20.72 MB / 393 MB, free: 132 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001486/0.2642, allocations: 31.06 kB / 393 MB, free: 120 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002933/0.2672, allocations: 1.234 MB / 394.3 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006835/0.274, allocations: 2.303 MB / 396.6 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004412/0.2785, allocations: 1.444 MB / 398 MB, free: 13.28 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009409/0.2879, allocations: 6.528 MB / 404.5 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006839/0.2886, allocations: 466.6 kB / 405 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001369/0.29, allocations: 1.057 MB / 406.1 MB, free: 9.551 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001057/0.291, allocations: 1.114 MB / 407.2 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001801/0.2912, allocations: 76.5 kB / 407.2 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004023/0.2953, allocations: 1.484 MB / 408.7 MB, free: 8.184 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003132/0.2956, allocations: 329.6 kB / 409 MB, free: 7.859 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001219/0.2968, allocations: 1.378 MB / 410.4 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00409/0.3009, allocations: 3.74 MB / 414.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.3009, allocations: 0 / 414.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3009, allocations: 0 / 414.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.322e-05/0.301, allocations: 0 / 414.2 MB, free: 2.719 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.004774/0.3058, allocations: 3.685 MB / 417.8 MB, free: 14.96 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.3058, allocations: 8.031 kB / 417.9 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001179/0.3059, allocations: 100 kB / 418 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000387/0.3063, allocations: 395.1 kB / 418.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003121/0.3095, allocations: 2.437 MB / 420.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.997e-05/0.3095, allocations: 33 kB / 420.8 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/0.3096, allocations: 59.89 kB / 420.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001289/0.3109, allocations: 0.7304 MB / 421.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.311, allocations: 0 / 421.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.042e-05/0.311, allocations: 20 kB / 421.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.117e-05/0.3111, allocations: 19.98 kB / 421.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001573/0.3126, allocations: 0.8163 MB / 422.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004706/0.3174, allocations: 3.063 MB / 425.5 MB, free: 7.102 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.3186, allocations: 0.5674 MB / 426.1 MB, free: 6.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000997/0.3196, allocations: 0.6502 MB / 426.7 MB, free: 5.867 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02793/0.3475, allocations: 30.76 MB / 457.5 MB, free: 2.859 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007275/0.3483, allocations: 361.7 kB / 457.8 MB, free: 2.492 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.274e-06/0.3483, allocations: 0 / 457.8 MB, free: 2.492 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002132/0.3504, allocations: 1.085 MB / 458.9 MB, free: 1.398 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.717e-05/0.3505, allocations: 75.27 kB / 459 MB, free: 1.312 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003193/0.3537, allocations: 2.931 MB / 461.9 MB, free: 14.37 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.553e-05/0.3538, allocations: 33.7 kB / 462 MB, free: 14.33 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001163/0.3549, allocations: 1.482 MB / 463.4 MB, free: 12.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.3551, allocations: 173.7 kB / 463.6 MB, free: 12.67 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002732/0.3554, allocations: 230.1 kB / 463.8 MB, free: 12.44 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.3555, allocations: 337.9 kB / 464.2 MB, free: 12.1 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005695/0.356, allocations: 237.9 kB / 464.4 MB, free: 11.87 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007966/0.3568, allocations: 0.602 MB / 465 MB, free: 11.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001401/0.3583, allocations: 0.8973 MB / 465.9 MB, free: 10.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.3583, allocations: 4 kB / 465.9 MB, free: 10.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001944/0.3602, allocations: 1.225 MB / 467.1 MB, free: 8.781 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.3603, allocations: 8 kB / 467.1 MB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000106/0.3604, allocations: 83.98 kB / 467.2 MB, free: 8.691 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.304e-05/0.3604, allocations: 19.94 kB / 467.2 MB, free: 8.672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007019/0.3611, allocations: 208.2 kB / 467.4 MB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.152e-05/0.3611, allocations: 24.88 kB / 467.5 MB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008127/0.362, allocations: 107 kB / 467.6 MB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.528e-05/0.3621, allocations: 67.98 kB / 467.6 MB, free: 8.273 MB / 382.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.000591/0.3627, allocations: 441.7 kB / 468.1 MB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003324/0.363, allocations: 387.3 kB / 468.5 MB, free: 7.453 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003003/0.366, allocations: 1.195 MB / 469.6 MB, free: 6.246 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/0.366, allocations: 4 kB / 469.7 MB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.366, allocations: 0 / 469.7 MB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.366, allocations: 3.984 kB / 469.7 MB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00302/0.3691, allocations: 2.093 MB / 471.7 MB, free: 4.078 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001006/0.3692, allocations: 72 kB / 471.8 MB, free: 4.008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004759/0.3697, allocations: 91.86 kB / 471.9 MB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.3697, allocations: 0 / 471.9 MB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.466e-05/0.3697, allocations: 31.98 kB / 471.9 MB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.3698, allocations: 4 kB / 471.9 MB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3698, allocations: 1.125 kB / 471.9 MB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002173/0.3719, allocations: 1.304 MB / 473.2 MB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005914/0.3725, allocations: 476.3 kB / 473.7 MB, free: 2.059 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002894/0.3728, allocations: 12 kB / 473.7 MB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006508/0.3735, allocations: 27.95 kB / 473.8 MB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001576/0.3737, allocations: 71.77 kB / 473.8 MB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.307e-05/0.3737, allocations: 44.05 kB / 473.9 MB, free: 1.906 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002147/0.3759, allocations: 1.899 MB / 475.8 MB, free: 8 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.322e-06/0.3759, allocations: 0 / 475.8 MB, free: 8 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001167/0.3771, allocations: 0.5934 MB / 476.4 MB, free: 15.41 MB / 398.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.00332/0.3804, allocations: 2.523 MB / 478.9 MB, free: 12.86 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001602/0.382, allocations: 0.8255 MB / 479.7 MB, free: 12.01 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.382, allocations: 0 / 479.7 MB, free: 12.01 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007523/0.3828, allocations: 447.2 kB / 480.1 MB, free: 11.54 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002364/0.3852, allocations: 0.615 MB / 480.8 MB, free: 10.92 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02278/0.408, allocations: 21 MB / 0.49 GB, free: 3.758 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001206/0.4092, allocations: 1.668 MB / 0.4916 GB, free: 2.062 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001915/0.4111, allocations: 357.1 kB / 0.492 GB, free: 1.707 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001683/0.4128, allocations: 1.21 MB / 0.4932 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4128, allocations: 0 / 0.4932 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2277/0.6405, allocations: 60.2 MB / 0.5519 GB, free: 141.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.774/9.415, allocations: 8.062 kB / 0.552 GB, free: 141.2 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches