Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.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.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers") translateModel(Modelica.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00228/0.00228, allocations: 180.5 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.658/3.658, allocations: 205.4 MB / 223.6 MB, free: 8.934 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.001475/0.001476, allocations: 87.41 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006294/0.0006296, allocations: 12 kB / 328.2 MB, free: 15.92 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7174/0.7181, allocations: 47.56 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2217/0.9398, allocations: 79 MB / 454.7 MB, free: 1.633 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004981/0.9405, allocations: 71.97 kB / 454.8 MB, free: 1.562 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04078/0.9813, allocations: 8.062 MB / 462.8 MB, free: 9.457 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.717e-06/0.9813, allocations: 0 / 462.8 MB, free: 9.457 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.004209/0.9856, allocations: 12.22 kB / 462.9 MB, free: 9.445 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.00318/0.9888, allocations: 0.7833 MB / 463.6 MB, free: 8.609 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.378e-05/0.9889, allocations: 8.031 kB / 463.7 MB, free: 8.602 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003826/0.9893, allocations: 64.19 kB / 463.7 MB, free: 8.539 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00115/0.9905, allocations: 363.7 kB / 464.1 MB, free: 8.145 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.864e-05/0.9906, allocations: 41.38 kB / 464.1 MB, free: 8.105 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001896/0.9908, allocations: 48.38 kB / 464.2 MB, free: 8.059 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001712/0.9925, allocations: 487.7 kB / 464.6 MB, free: 7.566 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.411e-05/0.9926, allocations: 192 / 464.6 MB, free: 7.566 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/0.9927, allocations: 23.94 kB / 464.7 MB, free: 7.543 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.988e-05/0.9928, allocations: 12 kB / 464.7 MB, free: 7.531 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001258/0.994, allocations: 336.3 kB / 465 MB, free: 7.203 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005584/0.9996, allocations: 1.714 MB / 466.7 MB, free: 5.391 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008549/1.001, allocations: 269 kB / 467 MB, free: 5.109 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004622/1.001, allocations: 145.7 kB / 467.1 MB, free: 4.961 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.741e-05/1.001, allocations: 8 kB / 467.1 MB, free: 4.953 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.084e-05/1.001, allocations: 42.5 kB / 467.2 MB, free: 4.902 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 5.52e-06/1.001, allocations: 0 / 467.2 MB, free: 4.902 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.004024/1.005, allocations: 0.9651 MB / 468.1 MB, free: 3.863 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004148/1.009, allocations: 81.11 kB / 468.2 MB, free: 3.766 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001225/1.011, allocations: 381.5 kB / 468.6 MB, free: 3.387 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001543/1.011, allocations: 33.7 kB / 468.6 MB, free: 3.348 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003807/1.011, allocations: 287.5 kB / 468.9 MB, free: 3.062 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002201/1.012, allocations: 110.4 kB / 469 MB, free: 2.953 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.937e-05/1.012, allocations: 8 kB / 469 MB, free: 2.945 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003169/1.012, allocations: 350.7 kB / 469.4 MB, free: 2.594 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000541/1.013, allocations: 112.8 kB / 469.5 MB, free: 2.484 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005839/1.013, allocations: 198.5 kB / 469.7 MB, free: 2.25 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001116/1.014, allocations: 321 kB / 470 MB, free: 1.906 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/1.014, allocations: 0 / 470 MB, free: 1.906 MB / 346.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001791/1.016, allocations: 454.6 kB / 470.4 MB, free: 1.449 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.565e-05/1.016, allocations: 5.25 kB / 470.4 MB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/1.016, allocations: 4 kB / 470.4 MB, free: 1.441 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006489/1.017, allocations: 85.75 kB / 470.5 MB, free: 1.352 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006414/1.018, allocations: 79.83 kB / 470.6 MB, free: 1.273 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00371/1.021, allocations: 2.857 MB / 473.4 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005703/1.022, allocations: 27.88 kB / 473.5 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.689e-05/1.022, allocations: 12 kB / 473.5 MB, free: 14.11 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005195/1.022, allocations: 165.8 kB / 473.6 MB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002087/1.023, allocations: 47.47 kB / 473.7 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000121/1.023, allocations: 43.47 kB / 473.7 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/1.023, allocations: 4 kB / 473.7 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.174e-05/1.023, allocations: 0 / 473.7 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/1.023, allocations: 0 / 473.7 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006816/1.03, allocations: 0.94 MB / 474.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-05/1.03, allocations: 3.938 kB / 474.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004654/1.03, allocations: 47.97 kB / 474.7 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006572/1.031, allocations: 81.64 kB / 474.8 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.079e-05/1.031, allocations: 4 kB / 474.8 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004949/1.036, allocations: 2.865 MB / 477.7 MB, free: 9.562 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/1.036, allocations: 0 / 477.7 MB, free: 9.562 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001928/1.038, allocations: 0.63 MB / 478.3 MB, free: 8.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004013/1.039, allocations: 120.6 kB / 478.4 MB, free: 8.773 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001869/1.039, allocations: 8 kB / 478.4 MB, free: 8.766 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007525/1.04, allocations: 39.91 kB / 478.5 MB, free: 8.727 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001641/1.04, allocations: 27.97 kB / 478.5 MB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-05/1.04, allocations: 12 kB / 478.5 MB, free: 8.688 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006841/1.04, allocations: 267.2 kB / 478.8 MB, free: 8.426 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.041, allocations: 4 kB / 478.8 MB, free: 8.422 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001249/1.042, allocations: 116 kB / 478.9 MB, free: 8.309 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * 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 (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003867/1.042, allocations: 119.1 kB / 479 MB, free: 8.184 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001639/1.044, allocations: 0.508 MB / 479.5 MB, free: 7.652 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/1.044, allocations: 0 / 479.5 MB, free: 7.652 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009776/1.045, allocations: 397.1 kB / 479.9 MB, free: 7.238 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005499/1.05, allocations: 65.69 kB / 480 MB, free: 7.176 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004094/1.055, allocations: 1.202 MB / 481.2 MB, free: 5.945 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008632/1.055, allocations: 0.8392 MB / 482 MB, free: 5.078 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002082/1.056, allocations: 27.44 kB / 482 MB, free: 5.051 MB / 362.7 MB Notification: Performance of SimCode: time 1.583e-06/1.056, allocations: 4 kB / 482 MB, free: 5.047 MB / 362.7 MB Notification: Performance of Templates: time 0.03283/1.089, allocations: 8.824 MB / 490.9 MB, free: 12.22 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches