Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Polyphase.Examples.TestSensors.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Polyphase.Examples.TestSensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.inductor.2..i|inductor.inductor.3..i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Polyphase.Examples.TestSensors") translateModel(Modelica.Electrical.Polyphase.Examples.TestSensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.inductor.2..i|inductor.inductor.3..i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Polyphase.Examples.TestSensors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00116/0.00116, allocations: 196.6 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 226.5 MB / 244.3 MB, free: 8.32 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007147/0.0007144, allocations: 99.41 kB / 296.4 MB, free: 7.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002925/0.000292, allocations: 8 kB / 356.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3492/0.3495, allocations: 51.29 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Polyphase.Examples.TestSensors): time 0.005073/0.3546, allocations: 5.178 MB / 412.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003897/0.3586, allocations: 1.569 MB / 414.2 MB, free: 21.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008576/0.3595, allocations: 43.81 kB / 414.3 MB, free: 21.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004554/0.36, allocations: 226.3 kB / 414.5 MB, free: 20.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001068/0.361, allocations: 307.7 kB / 414.8 MB, free: 20.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005649/0.3616, allocations: 231.7 kB / 415 MB, free: 20.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001494/0.3631, allocations: 1.974 MB / 417 MB, free: 18.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001714/0.3648, allocations: 1.884 MB / 418.9 MB, free: 16.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009461/0.3658, allocations: 0.7121 MB / 419.6 MB, free: 15.69 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008404/0.3667, allocations: 0.8711 MB / 420.5 MB, free: 14.81 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001511/0.3668, allocations: 124 kB / 420.6 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004691/0.3673, allocations: 251.8 kB / 420.8 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002973/0.3676, allocations: 0.4906 MB / 421.3 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003434/0.368, allocations: 436.6 kB / 421.8 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001909/0.3699, allocations: 3.055 MB / 424.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3699, allocations: 0 / 424.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.3699, allocations: 0 / 424.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.287e-05/0.3699, allocations: 4 kB / 424.8 MB, free: 10.45 MB / 298.7 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.003171/0.3731, allocations: 2.095 MB / 426.9 MB, free: 8.297 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.3732, allocations: 8.031 kB / 426.9 MB, free: 8.289 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007312/0.3739, allocations: 269.2 kB / 427.2 MB, free: 8.023 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001564/0.3755, allocations: 1.247 MB / 428.4 MB, free: 6.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.294e-05/0.3756, allocations: 172.5 kB / 428.6 MB, free: 6.559 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002309/0.3758, allocations: 216 kB / 428.8 MB, free: 6.348 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003614/0.3794, allocations: 2.538 MB / 431.3 MB, free: 3.758 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.24e-05/0.3795, allocations: 0 / 431.3 MB, free: 3.758 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001576/0.3796, allocations: 92 kB / 431.4 MB, free: 3.668 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.877e-05/0.3797, allocations: 56 kB / 431.5 MB, free: 3.613 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002862/0.3826, allocations: 2.134 MB / 433.6 MB, free: 1.465 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01122/0.3938, allocations: 7.643 MB / 441.3 MB, free: 9.602 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/0.3951, allocations: 1.254 MB / 442.5 MB, free: 8.211 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009669/0.3961, allocations: 0.6257 MB / 443.1 MB, free: 7.586 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.821e-05/0.3962, allocations: 8.547 kB / 443.1 MB, free: 7.578 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.3962, allocations: 39.12 kB / 443.2 MB, free: 7.531 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 3.246e-06/0.3962, allocations: 0 / 443.2 MB, free: 7.531 MB / 314.7 MB Notification: Performance of matching and sorting (n=65): time 0.004322/0.4006, allocations: 2.451 MB / 445.6 MB, free: 5.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.77e-05/0.4006, allocations: 59.97 kB / 445.7 MB, free: 4.949 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001039/0.4017, allocations: 0.7855 MB / 446.5 MB, free: 4.152 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.836e-05/0.4017, allocations: 37.7 kB / 446.5 MB, free: 4.109 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006511/0.4024, allocations: 0.9215 MB / 447.4 MB, free: 3.172 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000185/0.4026, allocations: 224.8 kB / 447.7 MB, free: 2.949 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.091e-05/0.4026, allocations: 16 kB / 447.7 MB, free: 2.934 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.4029, allocations: 386.8 kB / 448.1 MB, free: 2.547 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005487/0.4034, allocations: 369.8 kB / 448.4 MB, free: 2.184 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007057/0.4041, allocations: 0.5868 MB / 449 MB, free: 1.504 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006796/0.4048, allocations: 473.8 kB / 449.5 MB, free: 1.043 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.4048, allocations: 4 kB / 449.5 MB, free: 1.039 MB / 314.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001895/0.4067, allocations: 1.147 MB / 450.6 MB, free: 15.88 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.724e-05/0.4068, allocations: 8 kB / 450.6 MB, free: 15.87 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.755e-05/0.4068, allocations: 8 kB / 450.6 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003206/0.4071, allocations: 112.7 kB / 450.7 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006826/0.4078, allocations: 179.8 kB / 450.9 MB, free: 15.57 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002381/0.4102, allocations: 2.138 MB / 453.1 MB, free: 13.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006226/0.4108, allocations: 43.95 kB / 453.1 MB, free: 13.26 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.516e-05/0.4109, allocations: 32 kB / 453.1 MB, free: 13.23 MB / 330.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001356/0.4123, allocations: 0.6536 MB / 453.8 MB, free: 12.57 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002102/0.4125, allocations: 83.05 kB / 453.9 MB, free: 12.48 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001827/0.4127, allocations: 95.56 kB / 454 MB, free: 12.38 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.829e-05/0.4127, allocations: 8 kB / 454 MB, free: 12.38 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.42e-05/0.4127, allocations: 4 kB / 454 MB, free: 12.37 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.769e-06/0.4128, allocations: 3.984 kB / 454 MB, free: 12.37 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004482/0.4172, allocations: 2.674 MB / 456.6 MB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.4173, allocations: 0 / 456.6 MB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004662/0.4177, allocations: 115.8 kB / 456.8 MB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002511/0.418, allocations: 96.78 kB / 456.9 MB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.658e-05/0.4181, allocations: 19.97 kB / 456.9 MB, free: 9.379 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002076/0.4202, allocations: 2.073 MB / 458.9 MB, free: 7.176 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.4202, allocations: 96 / 458.9 MB, free: 7.176 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00214/0.4223, allocations: 1.439 MB / 460.4 MB, free: 5.699 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003913/0.4227, allocations: 232 kB / 460.6 MB, free: 5.453 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.93e-05/0.4228, allocations: 12 kB / 460.6 MB, free: 5.441 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004154/0.4232, allocations: 43.95 kB / 460.7 MB, free: 5.398 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001176/0.4234, allocations: 52.56 kB / 460.7 MB, free: 5.348 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.988e-05/0.4234, allocations: 19.98 kB / 460.7 MB, free: 5.328 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007693/0.4242, allocations: 0.5536 MB / 461.3 MB, free: 4.777 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4242, allocations: 0 / 461.3 MB, free: 4.777 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001327/0.4255, allocations: 304 kB / 461.6 MB, free: 4.48 MB / 330.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003304/0.4259, allocations: 131.1 kB / 461.7 MB, free: 4.344 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001819/0.4277, allocations: 1.006 MB / 462.7 MB, free: 3.324 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.4277, allocations: 0 / 462.7 MB, free: 3.324 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008426/0.4286, allocations: 0.5656 MB / 463.3 MB, free: 2.75 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0011/0.4297, allocations: 211.8 kB / 463.5 MB, free: 2.543 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005902/0.4356, allocations: 3.984 MB / 467.5 MB, free: 14.5 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001308/0.437, allocations: 1.68 MB / 469.2 MB, free: 12.79 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002898/0.4373, allocations: 67.42 kB / 469.2 MB, free: 12.73 MB / 346.7 MB Notification: Performance of SimCode: time 1.543e-06/0.4373, allocations: 0 / 469.2 MB, free: 12.73 MB / 346.7 MB Notification: Performance of Templates: time 0.03913/0.4764, allocations: 28.29 MB / 497.5 MB, free: 480 kB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Polyphase.Examples.TestSensors.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Polyphase.Examples.TestSensors.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Polyphase.Examples.TestSensors --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Polyphase.Examples.TestSensors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Polyphase/Examples/TestSensors/TestSensors.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Polyphase.Examples.TestSensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches