Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors.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.Polyphase.Examples.TestSensors,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Polyphase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Polyphase.Examples.TestSensors,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Polyphase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001353/0.001353, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001465/0.001465, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00184/0.00184, allocations: 60.14 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2962/0.298, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Polyphase.Examples.TestSensors): time 0.008414/0.3065, allocations: 6.026 MB / 414.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003757/0.3103, allocations: 1.686 MB / 416.5 MB, free: 9.785 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005919/0.3109, allocations: 51.75 kB / 416.5 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006114/0.3115, allocations: 301.5 kB / 416.8 MB, free: 9.438 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001131/0.3127, allocations: 377.5 kB / 417.2 MB, free: 9.066 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006649/0.3134, allocations: 351.5 kB / 417.5 MB, free: 8.723 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00212/0.3155, allocations: 2.017 MB / 419.5 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003315/0.3188, allocations: 2.739 MB / 422.3 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001473/0.3203, allocations: 1.048 MB / 423.3 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001707/0.322, allocations: 1.206 MB / 424.5 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003737/0.3224, allocations: 312 kB / 424.8 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007231/0.3231, allocations: 451.7 kB / 425.3 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006521/0.3238, allocations: 0.7286 MB / 426 MB, free: 160 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001264/0.3251, allocations: 1.264 MB / 427.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004169/0.3293, allocations: 3.802 MB / 431.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.3293, allocations: 4 kB / 431.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3293, allocations: 3.938 kB / 431.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.215e-05/0.3294, allocations: 0 / 431.1 MB, free: 11.07 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 578 * Number of variables: 578 Notification: Performance of Generate backend data structure: time 0.004869/0.3342, allocations: 2.529 MB / 433.6 MB, free: 8.473 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.3343, allocations: 8.031 kB / 433.6 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004088/0.3347, allocations: 328.9 kB / 433.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008495/0.3356, allocations: 279.4 kB / 434.2 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002178/0.3378, allocations: 1.342 MB / 435.6 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001408/0.3379, allocations: 164.9 kB / 435.7 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000311/0.3382, allocations: 223.9 kB / 435.9 MB, free: 6.086 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004207/0.3425, allocations: 2.538 MB / 438.5 MB, free: 3.496 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.559e-05/0.3425, allocations: 4 kB / 438.5 MB, free: 3.492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001917/0.3427, allocations: 88 kB / 438.6 MB, free: 3.406 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.004e-05/0.3428, allocations: 56 kB / 438.6 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003537/0.3463, allocations: 2.145 MB / 440.8 MB, free: 1.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01159/0.3579, allocations: 7.502 MB / 448.3 MB, free: 9.473 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001389/0.3593, allocations: 1.258 MB / 449.5 MB, free: 8.082 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00111/0.3605, allocations: 0.6335 MB / 450.2 MB, free: 7.449 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.833e-05/0.3605, allocations: 4.562 kB / 450.2 MB, free: 7.445 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.287e-05/0.3606, allocations: 43.11 kB / 450.2 MB, free: 7.395 MB / 366.1 MB Notification: Performance of pre-optimization done (n=63): time 5.26e-06/0.3606, allocations: 4 kB / 450.2 MB, free: 7.391 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004288/0.3649, allocations: 2.462 MB / 452.7 MB, free: 4.871 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.212e-05/0.365, allocations: 59.97 kB / 452.7 MB, free: 4.797 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001073/0.3661, allocations: 0.7973 MB / 453.5 MB, free: 3.988 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.307e-05/0.3661, allocations: 33.7 kB / 453.6 MB, free: 3.949 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007049/0.3668, allocations: 0.948 MB / 454.5 MB, free: 2.988 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001995/0.367, allocations: 238 kB / 454.7 MB, free: 2.754 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002348/0.3673, allocations: 142.6 kB / 454.9 MB, free: 2.605 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002313/0.3675, allocations: 398.7 kB / 455.3 MB, free: 2.207 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005814/0.3681, allocations: 369.7 kB / 455.6 MB, free: 1.848 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008124/0.3689, allocations: 0.579 MB / 456.2 MB, free: 1.172 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001434/0.3704, allocations: 0.9815 MB / 457.2 MB, free: 100 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.3704, allocations: 4 kB / 457.2 MB, free: 96 kB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001907/0.3723, allocations: 1.155 MB / 458.3 MB, free: 14.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.3723, allocations: 8 kB / 458.4 MB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.3724, allocations: 8.531 kB / 458.4 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003243/0.3727, allocations: 112.8 kB / 458.5 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007004/0.3734, allocations: 175.7 kB / 458.6 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002637/0.3761, allocations: 2.322 MB / 461 MB, free: 12.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004916/0.3766, allocations: 39.97 kB / 461 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.023e-05/0.3766, allocations: 36.05 kB / 461 MB, free: 12.09 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 86 * Array equations: 2 * 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): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00117/0.3778, allocations: 0.6496 MB / 461.7 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002046/0.378, allocations: 95.36 kB / 461.8 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001758/0.3782, allocations: 99.69 kB / 461.9 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.027e-05/0.3782, allocations: 12 kB / 461.9 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.205e-05/0.3783, allocations: 3.984 kB / 461.9 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.3783, allocations: 7.984 kB / 461.9 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004339/0.3826, allocations: 2.651 MB / 464.6 MB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/0.3826, allocations: 4 kB / 464.6 MB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000472/0.3831, allocations: 107.9 kB / 464.7 MB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002395/0.3834, allocations: 101.1 kB / 464.8 MB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.193e-05/0.3834, allocations: 27.91 kB / 464.8 MB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002292/0.3857, allocations: 2.263 MB / 467.1 MB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.3858, allocations: 4.031 kB / 467.1 MB, free: 5.836 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002143/0.3879, allocations: 1.425 MB / 468.5 MB, free: 4.375 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003481/0.3883, allocations: 220.5 kB / 468.7 MB, free: 4.141 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.539e-05/0.3884, allocations: 27.92 kB / 468.7 MB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004121/0.3888, allocations: 35.97 kB / 468.8 MB, free: 4.078 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/0.3889, allocations: 48.42 kB / 468.8 MB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.142e-05/0.389, allocations: 20 kB / 468.8 MB, free: 4.012 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000765/0.3898, allocations: 0.5654 MB / 469.4 MB, free: 3.449 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3898, allocations: 4 kB / 469.4 MB, free: 3.445 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001122/0.3909, allocations: 300 kB / 469.7 MB, free: 3.152 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (inductor.inductor[2].i,inductor.inductor[3].i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 52 * Array equations: 2 * 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): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002624/0.3935, allocations: 1.996 MB / 471.7 MB, free: 1.113 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00172/0.3953, allocations: 1.007 MB / 472.7 MB, free: 96 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.3953, allocations: 4.125 kB / 472.7 MB, free: 92 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009007/0.3962, allocations: 0.56 MB / 473.3 MB, free: 15.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.3973, allocations: 227.1 kB / 473.5 MB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01518/0.4125, allocations: 10.18 MB / 483.7 MB, free: 4.754 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001596/0.4141, allocations: 1.728 MB / 485.4 MB, free: 2.988 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005697/0.4147, allocations: 195.1 kB / 485.6 MB, free: 2.793 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008097/0.4155, allocations: 0.6438 MB / 486.2 MB, free: 2.152 MB / 398.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4155, allocations: 3.938 kB / 486.2 MB, free: 2.148 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06739/0.4829, allocations: 24.28 MB / 0.4985 GB, free: 10.11 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/12.07, allocations: 12.88 kB / 0.4985 GB, free: 10.1 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Polyphase_Examples_TestSensors.fmu > Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Polyphase/Examples/TestSensors/TestSensors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches