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.001249/0.001249, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001288/0.001288, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001465, allocations: 55.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.2817, 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.006923/0.2887, allocations: 6.033 MB / 414.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003425/0.2922, allocations: 1.678 MB / 416.5 MB, free: 9.785 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007451/0.2929, allocations: 47.81 kB / 416.5 MB, free: 9.738 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006333/0.2936, allocations: 313.5 kB / 416.8 MB, free: 9.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001107/0.2947, allocations: 381.5 kB / 417.2 MB, free: 9.055 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006621/0.2954, allocations: 355.5 kB / 417.5 MB, free: 8.707 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001958/0.2974, allocations: 2.017 MB / 419.6 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002807/0.3002, allocations: 2.731 MB / 422.3 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001191/0.3014, allocations: 1.048 MB / 423.3 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001289/0.3027, allocations: 1.21 MB / 424.5 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003408/0.3031, allocations: 312 kB / 424.9 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006841/0.3037, allocations: 455.7 kB / 425.3 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000592/0.3044, allocations: 0.7286 MB / 426 MB, free: 144 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001263/0.3056, allocations: 1.272 MB / 427.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003339/0.309, allocations: 3.802 MB / 431.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.309, allocations: 0 / 431.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.309, allocations: 0 / 431.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.608e-05/0.3091, allocations: 0 / 431.1 MB, free: 11.05 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.004278/0.3133, allocations: 2.529 MB / 433.6 MB, free: 8.453 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.3134, allocations: 8.031 kB / 433.6 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003817/0.3138, allocations: 328.9 kB / 434 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008393/0.3147, allocations: 283.4 kB / 434.2 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002218/0.3169, allocations: 1.338 MB / 435.6 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/0.317, allocations: 168.9 kB / 435.7 MB, free: 6.281 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002881/0.3173, allocations: 219.9 kB / 436 MB, free: 6.066 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003896/0.3212, allocations: 2.538 MB / 438.5 MB, free: 3.477 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.15e-05/0.3213, allocations: 0 / 438.5 MB, free: 3.477 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001855/0.3215, allocations: 88 kB / 438.6 MB, free: 3.391 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.102e-05/0.3215, allocations: 59.98 kB / 438.6 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00325/0.3248, allocations: 2.149 MB / 440.8 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01049/0.3353, allocations: 7.509 MB / 448.3 MB, free: 9.441 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.3366, allocations: 1.254 MB / 449.5 MB, free: 8.059 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001072/0.3377, allocations: 0.6257 MB / 450.2 MB, free: 7.434 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.919e-05/0.3377, allocations: 8.562 kB / 450.2 MB, free: 7.426 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.689e-05/0.3378, allocations: 43.12 kB / 450.2 MB, free: 7.375 MB / 366.1 MB Notification: Performance of pre-optimization done (n=63): time 2.815e-06/0.3378, allocations: 0 / 450.2 MB, free: 7.375 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004069/0.3419, allocations: 2.458 MB / 452.7 MB, free: 4.859 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.3419, allocations: 63.91 kB / 452.7 MB, free: 4.781 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001002/0.3429, allocations: 0.8051 MB / 453.5 MB, free: 3.965 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.243e-05/0.343, allocations: 33.7 kB / 453.6 MB, free: 3.926 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006009/0.3436, allocations: 0.9441 MB / 454.5 MB, free: 2.969 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001821/0.3438, allocations: 238 kB / 454.8 MB, free: 2.734 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002227/0.344, allocations: 142.6 kB / 454.9 MB, free: 2.586 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.3442, allocations: 398.7 kB / 455.3 MB, free: 2.188 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005504/0.3448, allocations: 369.8 kB / 455.6 MB, free: 1.828 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007221/0.3455, allocations: 0.5789 MB / 456.2 MB, free: 1.152 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001299/0.3468, allocations: 0.9777 MB / 457.2 MB, free: 84 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.3468, allocations: 4 kB / 457.2 MB, free: 80 kB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001813/0.3486, allocations: 1.163 MB / 458.4 MB, free: 14.9 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.3487, allocations: 8.094 kB / 458.4 MB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.3487, allocations: 8 kB / 458.4 MB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000313/0.349, allocations: 112.7 kB / 458.5 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006747/0.3497, allocations: 171.7 kB / 458.7 MB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002234/0.3519, allocations: 2.318 MB / 461 MB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005075/0.3525, allocations: 44.03 kB / 461 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.907e-05/0.3525, allocations: 35.98 kB / 461.1 MB, free: 12.07 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.00115/0.3537, allocations: 0.6574 MB / 461.7 MB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001909/0.3539, allocations: 91.38 kB / 461.8 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001976/0.3541, allocations: 95.69 kB / 461.9 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.939e-05/0.3541, allocations: 8 kB / 461.9 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.498e-05/0.3542, allocations: 11.98 kB / 461.9 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.3542, allocations: 0 / 461.9 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004529/0.3587, allocations: 2.659 MB / 464.6 MB, free: 8.453 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.495e-06/0.3587, allocations: 7.984 kB / 464.6 MB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004597/0.3592, allocations: 103.9 kB / 464.7 MB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000243/0.3595, allocations: 100.9 kB / 464.8 MB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.404e-05/0.3595, allocations: 23.92 kB / 464.8 MB, free: 8.219 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002152/0.3617, allocations: 2.271 MB / 467.1 MB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.3617, allocations: 0 / 467.1 MB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002089/0.3638, allocations: 1.424 MB / 468.5 MB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004741/0.3643, allocations: 228.5 kB / 468.7 MB, free: 4.109 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001574/0.3644, allocations: 19.94 kB / 468.7 MB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004566/0.3649, allocations: 39.95 kB / 468.8 MB, free: 4.051 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001237/0.365, allocations: 44.5 kB / 468.8 MB, free: 4.008 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-05/0.3651, allocations: 24.06 kB / 468.9 MB, free: 3.984 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007145/0.3658, allocations: 0.5614 MB / 469.4 MB, free: 3.426 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3658, allocations: 0 / 469.4 MB, free: 3.426 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00114/0.367, allocations: 300 kB / 469.7 MB, free: 3.133 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.00249/0.3695, allocations: 2.007 MB / 471.7 MB, free: 1.086 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001679/0.3712, allocations: 1.007 MB / 472.7 MB, free: 68 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.3712, allocations: 0 / 472.7 MB, free: 68 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008727/0.3721, allocations: 0.5601 MB / 473.3 MB, free: 15.49 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001199/0.3733, allocations: 219.7 kB / 473.5 MB, free: 15.28 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01559/0.3889, allocations: 10.18 MB / 483.7 MB, free: 4.734 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001684/0.3906, allocations: 1.736 MB / 485.4 MB, free: 2.961 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005499/0.3912, allocations: 199.1 kB / 485.6 MB, free: 2.762 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007714/0.3919, allocations: 0.6438 MB / 486.3 MB, free: 2.121 MB / 398.1 MB Notification: Performance of SimCode: time 2.204e-06/0.392, allocations: 0 / 486.3 MB, free: 2.121 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05531/0.4473, allocations: 24.27 MB / 0.4986 GB, free: 10.08 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/11.14, allocations: 7.484 kB / 0.4986 GB, free: 10.07 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.0.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