Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002154/0.002154, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.549/1.549, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 115.2 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008865/0.0008867, allocations: 43.94 kB / 350 MB, free: 80 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2535, allocations: 49.43 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.003651/0.2572, allocations: 4.101 MB / 403.6 MB, free: 29.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001112/0.2584, allocations: 0.8752 MB / 404.4 MB, free: 28.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002031/0.2586, allocations: 8 kB / 404.5 MB, free: 28.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002021/0.2588, allocations: 71.44 kB / 404.5 MB, free: 28.31 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002655/0.2591, allocations: 154.8 kB / 404.7 MB, free: 28.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002769/0.2594, allocations: 119.9 kB / 404.8 MB, free: 28.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003999/0.2598, allocations: 0.6498 MB / 405.4 MB, free: 27.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002379/0.26, allocations: 183.9 kB / 405.6 MB, free: 27.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001913/0.2602, allocations: 235 kB / 405.9 MB, free: 26.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002095/0.2604, allocations: 282.7 kB / 406.1 MB, free: 26.69 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.973e-05/0.2605, allocations: 39.94 kB / 406.2 MB, free: 26.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.387e-05/0.2606, allocations: 44 kB / 406.2 MB, free: 26.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.69e-05/0.2607, allocations: 107.5 kB / 406.3 MB, free: 26.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001701/0.2608, allocations: 282.5 kB / 406.6 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003795/0.2612, allocations: 0.6125 MB / 407.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2612, allocations: 3.938 kB / 407.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2612, allocations: 0 / 407.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.2613, allocations: 0 / 407.2 MB, free: 25.61 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.00112/0.2624, allocations: 0.8573 MB / 408.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.2624, allocations: 8.031 kB / 408.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.196e-05/0.2625, allocations: 68.19 kB / 408.1 MB, free: 24.63 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000354/0.2629, allocations: 375.6 kB / 408.5 MB, free: 24.22 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/0.2629, allocations: 33.38 kB / 408.5 MB, free: 24.19 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.872e-05/0.263, allocations: 52.38 kB / 408.6 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006054/0.2636, allocations: 483.5 kB / 409.1 MB, free: 23.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.2636, allocations: 4 kB / 409.1 MB, free: 23.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.652e-05/0.2636, allocations: 20 kB / 409.1 MB, free: 23.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.2637, allocations: 12 kB / 409.1 MB, free: 23.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004901/0.2642, allocations: 332.3 kB / 409.4 MB, free: 23.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002073/0.2662, allocations: 1.689 MB / 411.1 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003635/0.2666, allocations: 265 kB / 411.4 MB, free: 21.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001903/0.2668, allocations: 142.8 kB / 411.5 MB, free: 21.08 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.397e-05/0.2669, allocations: 11.89 kB / 411.5 MB, free: 21.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/0.2669, allocations: 38.56 kB / 411.6 MB, free: 21.02 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 2.504e-06/0.2669, allocations: 3.938 kB / 411.6 MB, free: 21.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001564/0.2685, allocations: 0.954 MB / 412.5 MB, free: 19.99 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.261e-05/0.2685, allocations: 81.11 kB / 412.6 MB, free: 19.89 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003033/0.2688, allocations: 389.6 kB / 413 MB, free: 19.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.2688, allocations: 33.7 kB / 413 MB, free: 19.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.269, allocations: 283.5 kB / 413.3 MB, free: 19.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.262e-05/0.269, allocations: 114.3 kB / 413.4 MB, free: 19.06 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.096e-05/0.2691, allocations: 78.05 kB / 413.5 MB, free: 18.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.256e-05/0.2692, allocations: 350.7 kB / 413.8 MB, free: 18.63 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001758/0.2694, allocations: 104.8 kB / 413.9 MB, free: 18.53 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002022/0.2696, allocations: 198.5 kB / 414.1 MB, free: 18.29 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003672/0.27, allocations: 305.1 kB / 414.4 MB, free: 17.96 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.27, allocations: 0 / 414.4 MB, free: 17.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00067/0.2707, allocations: 452.8 kB / 414.9 MB, free: 17.51 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.2707, allocations: 8 kB / 414.9 MB, free: 17.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.2707, allocations: 0 / 414.9 MB, free: 17.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003264/0.271, allocations: 77.66 kB / 414.9 MB, free: 17.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002926/0.2713, allocations: 83.88 kB / 415 MB, free: 17.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001703/0.273, allocations: 2.849 MB / 417.9 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002584/0.2733, allocations: 19.91 kB / 417.9 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.2734, allocations: 19.94 kB / 417.9 MB, free: 14.19 MB / 298.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001644/0.2735, allocations: 169.6 kB / 418.1 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.868e-05/0.2736, allocations: 47.52 kB / 418.1 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.906e-05/0.2737, allocations: 39.47 kB / 418.2 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.2737, allocations: 8.062 kB / 418.2 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.2737, allocations: 0 / 418.2 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.2737, allocations: 4 kB / 418.2 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001086/0.2748, allocations: 0.9348 MB / 419.1 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.2748, allocations: 8 kB / 419.1 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001684/0.275, allocations: 47.91 kB / 419.2 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002314/0.2752, allocations: 77.83 kB / 419.2 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.846e-05/0.2753, allocations: 16 kB / 419.2 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001458/0.2767, allocations: 2.85 MB / 422.1 MB, free: 9.648 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.2767, allocations: 8.094 kB / 422.1 MB, free: 9.641 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004854/0.2816, allocations: 5.724 MB / 427.8 MB, free: 3.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.524e-05/0.2817, allocations: 116.7 kB / 427.9 MB, free: 3.348 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.246e-05/0.2818, allocations: 15.94 kB / 428 MB, free: 3.332 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003199/0.2821, allocations: 28.11 kB / 428 MB, free: 3.305 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.892e-05/0.2822, allocations: 27.95 kB / 428 MB, free: 3.277 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-05/0.2822, allocations: 8 kB / 428 MB, free: 3.27 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002342/0.2825, allocations: 275.2 kB / 428.3 MB, free: 3.004 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2825, allocations: 0 / 428.3 MB, free: 3.004 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007535/0.2832, allocations: 164 kB / 428.4 MB, free: 2.844 MB / 298.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000144/0.2834, allocations: 119.2 kB / 428.6 MB, free: 2.715 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007531/0.2841, allocations: 0.503 MB / 429.1 MB, free: 2.188 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.2842, allocations: 8.188 kB / 429.1 MB, free: 2.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004514/0.2846, allocations: 385.2 kB / 429.5 MB, free: 1.777 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005504/0.2852, allocations: 65.41 kB / 429.5 MB, free: 1.715 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001732/0.2869, allocations: 1.64 MB / 431.2 MB, free: 12 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004227/0.2874, allocations: 0.8431 MB / 432 MB, free: 15.14 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001938/0.2876, allocations: 43.3 kB / 432 MB, free: 15.1 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.964e-05/0.2876, allocations: 31.44 kB / 432.1 MB, free: 15.07 MB / 314.7 MB Notification: Performance of SimCode: time 3.41e-07/0.2876, allocations: 0 / 432.1 MB, free: 15.07 MB / 314.7 MB Notification: Performance of Templates: time 0.009716/0.2974, allocations: 5.385 MB / 437.5 MB, free: 9.723 MB / 314.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches