Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.MultiPhase.Examples.TestSensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.inductor.2..i|inductor.inductor.3..i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors") translateModel(Modelica.Electrical.MultiPhase.Examples.TestSensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.inductor.2..i|inductor.inductor.3..i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001134/0.001134, allocations: 178.2 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.779/1.779, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008283/0.0008288, allocations: 97.95 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003382/0.0003383, allocations: 8 kB / 327 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2689, allocations: 47.58 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.MultiPhase.Examples.TestSensors): time 0.005669/0.2747, allocations: 5.124 MB / 379.7 MB, free: 41.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003895/0.2786, allocations: 1.583 MB / 381.3 MB, free: 40.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001104/0.2798, allocations: 38.62 kB / 381.3 MB, free: 40.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006576/0.2805, allocations: 229.3 kB / 381.5 MB, free: 39.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0014/0.2819, allocations: 301.1 kB / 381.8 MB, free: 39.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007477/0.2826, allocations: 225.8 kB / 382 MB, free: 39.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002509/0.2852, allocations: 1.989 MB / 384 MB, free: 38.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002618/0.2878, allocations: 1.858 MB / 385.9 MB, free: 37.33 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00134/0.2891, allocations: 0.6998 MB / 386.6 MB, free: 36.78 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00107/0.2902, allocations: 0.875 MB / 387.5 MB, free: 35.9 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001784/0.2904, allocations: 124 kB / 387.6 MB, free: 35.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005332/0.291, allocations: 247.8 kB / 387.8 MB, free: 35.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000364/0.2913, allocations: 0.4984 MB / 388.3 MB, free: 35.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004119/0.2917, allocations: 436.6 kB / 388.7 MB, free: 34.6 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002123/0.2939, allocations: 3.044 MB / 391.8 MB, free: 31.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.2939, allocations: 3.938 kB / 391.8 MB, free: 31.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.356e-06/0.2939, allocations: 0 / 391.8 MB, free: 31.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.587e-05/0.294, allocations: 0 / 391.8 MB, free: 31.55 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.003432/0.2974, allocations: 2.088 MB / 393.9 MB, free: 29.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.2975, allocations: 16.03 kB / 393.9 MB, free: 29.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005499/0.298, allocations: 233.3 kB / 394.1 MB, free: 29.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001506/0.2996, allocations: 1.161 MB / 395.3 MB, free: 27.94 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.398e-05/0.2997, allocations: 168.5 kB / 395.4 MB, free: 27.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002362/0.2999, allocations: 216 kB / 395.7 MB, free: 27.56 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003817/0.3037, allocations: 2.522 MB / 398.2 MB, free: 24.99 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.537e-05/0.3038, allocations: 4 kB / 398.2 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001636/0.3039, allocations: 92 kB / 398.3 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.982e-05/0.304, allocations: 56 kB / 398.3 MB, free: 24.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003044/0.3071, allocations: 2.126 MB / 400.5 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009871/0.3169, allocations: 7.643 MB / 408.1 MB, free: 14.83 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009763/0.318, allocations: 1.262 MB / 409.4 MB, free: 13.44 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008372/0.3188, allocations: 0.6263 MB / 410 MB, free: 12.81 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.665e-05/0.3189, allocations: 8.547 kB / 410 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.304e-05/0.3189, allocations: 47.06 kB / 410 MB, free: 12.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=63): time 5.02e-06/0.3189, allocations: 0 / 410 MB, free: 12.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=65): time 0.003886/0.3228, allocations: 2.459 MB / 412.5 MB, free: 10.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.3229, allocations: 59.97 kB / 412.6 MB, free: 10.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008231/0.3237, allocations: 0.7855 MB / 413.3 MB, free: 9.363 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.851e-05/0.3238, allocations: 33.7 kB / 413.4 MB, free: 9.324 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003865/0.3242, allocations: 0.9254 MB / 414.3 MB, free: 8.383 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.3243, allocations: 228.7 kB / 414.5 MB, free: 8.156 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.233e-05/0.3243, allocations: 16 kB / 414.5 MB, free: 8.141 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.3245, allocations: 390.8 kB / 414.9 MB, free: 7.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004629/0.3249, allocations: 369.7 kB / 415.3 MB, free: 7.387 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000543/0.3255, allocations: 0.5829 MB / 415.9 MB, free: 6.711 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005556/0.326, allocations: 469.8 kB / 416.3 MB, free: 6.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.326, allocations: 0 / 416.3 MB, free: 6.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.00156/0.3276, allocations: 1.159 MB / 417.5 MB, free: 5.082 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.3277, allocations: 8 kB / 417.5 MB, free: 5.074 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.3277, allocations: 4 kB / 417.5 MB, free: 5.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002868/0.328, allocations: 120.7 kB / 417.6 MB, free: 4.949 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006278/0.3286, allocations: 179.6 kB / 417.8 MB, free: 4.773 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001714/0.3303, allocations: 2.131 MB / 419.9 MB, free: 2.508 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005117/0.3309, allocations: 39.97 kB / 420 MB, free: 2.469 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.463e-05/0.3309, allocations: 35.98 kB / 420 MB, free: 2.434 MB / 298.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.001032/0.332, allocations: 0.6497 MB / 420.6 MB, free: 1.773 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001752/0.3321, allocations: 86.97 kB / 420.7 MB, free: 1.688 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001458/0.3323, allocations: 99.55 kB / 420.8 MB, free: 1.586 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-05/0.3323, allocations: 12 kB / 420.8 MB, free: 1.574 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.16e-05/0.3324, allocations: 0 / 420.8 MB, free: 1.574 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.333e-06/0.3324, allocations: 7.984 kB / 420.8 MB, free: 1.566 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003902/0.3363, allocations: 2.681 MB / 423.5 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.3363, allocations: 0 / 423.5 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004677/0.3368, allocations: 111.8 kB / 423.6 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002506/0.337, allocations: 100.9 kB / 423.7 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.538e-05/0.3371, allocations: 19.95 kB / 423.8 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00208/0.3392, allocations: 2.084 MB / 425.8 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.3392, allocations: 0 / 425.8 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002226/0.3414, allocations: 1.435 MB / 427.3 MB, free: 10.89 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003829/0.3418, allocations: 232 kB / 427.5 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.273e-05/0.3419, allocations: 12 kB / 427.5 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004185/0.3423, allocations: 48.02 kB / 427.6 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.3425, allocations: 44.5 kB / 427.6 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.292e-05/0.3425, allocations: 19.98 kB / 427.6 MB, free: 10.52 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008177/0.3434, allocations: 0.5536 MB / 428.2 MB, free: 9.969 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3434, allocations: 0 / 428.2 MB, free: 9.969 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001183/0.3446, allocations: 299.9 kB / 428.5 MB, free: 9.676 MB / 314.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.0002745/0.3448, allocations: 143.1 kB / 428.6 MB, free: 9.523 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001684/0.3465, allocations: 1.007 MB / 429.6 MB, free: 8.508 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3465, allocations: 0 / 429.6 MB, free: 8.508 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009166/0.3475, allocations: 0.5723 MB / 430.2 MB, free: 7.918 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001094/0.3486, allocations: 218.8 kB / 430.4 MB, free: 7.703 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006042/0.3546, allocations: 3.976 MB / 434.4 MB, free: 3.676 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001426/0.3561, allocations: 1.68 MB / 436.1 MB, free: 1.969 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002861/0.3564, allocations: 67.42 kB / 436.1 MB, free: 1.902 MB / 314.7 MB Notification: Performance of SimCode: time 1.062e-06/0.3564, allocations: 0 / 436.1 MB, free: 1.902 MB / 314.7 MB Notification: Performance of Templates: time 0.04103/0.3974, allocations: 28.26 MB / 464.4 MB, free: 5.625 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/MultiPhase/Examples/TestSensors/TestSensors.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches