Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001282/0.001282, allocations: 179.7 kB / 16.41 MB, free: 5.73 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.419/1.419, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0007297/0.0007296, allocations: 93.11 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003184/0.0003184, allocations: 8 kB / 327 MB, free: 180 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2197/0.22, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.003372/0.2234, allocations: 3.719 MB / 378.3 MB, free: 42.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002268/0.2257, allocations: 1.538 MB / 379.8 MB, free: 41.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004511/0.2262, allocations: 11.78 kB / 379.8 MB, free: 41.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003085/0.2265, allocations: 99.88 kB / 379.9 MB, free: 41.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007741/0.2273, allocations: 292.8 kB / 380.2 MB, free: 40.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003509/0.2276, allocations: 139.1 kB / 380.4 MB, free: 40.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008931/0.2285, allocations: 0.8622 MB / 381.2 MB, free: 40.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003274/0.2289, allocations: 187.3 kB / 381.4 MB, free: 40.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000474/0.2294, allocations: 299 kB / 381.7 MB, free: 40 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004947/0.2299, allocations: 366 kB / 382 MB, free: 39.76 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000125/0.23, allocations: 42.97 kB / 382.1 MB, free: 39.76 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003933/0.2304, allocations: 159.2 kB / 382.2 MB, free: 39.7 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.564e-05/0.2305, allocations: 133.9 kB / 382.4 MB, free: 39.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001757/0.2307, allocations: 158.3 kB / 382.5 MB, free: 39.49 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006227/0.2313, allocations: 0.8944 MB / 383.4 MB, free: 38.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2313, allocations: 0 / 383.4 MB, free: 38.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2313, allocations: 0 / 383.4 MB, free: 38.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.2314, allocations: 3.938 kB / 383.4 MB, free: 38.79 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001951/0.2333, allocations: 0.9761 MB / 384.4 MB, free: 38.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.2334, allocations: 13.36 kB / 384.4 MB, free: 38.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001311/0.2335, allocations: 78.97 kB / 384.5 MB, free: 38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005549/0.2341, allocations: 0.4947 MB / 385 MB, free: 37.56 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.891e-05/0.2341, allocations: 76.45 kB / 385.1 MB, free: 37.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001753/0.2343, allocations: 66.73 kB / 385.1 MB, free: 37.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00096/0.2353, allocations: 0.6043 MB / 385.7 MB, free: 37.1 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.2353, allocations: 3.938 kB / 385.7 MB, free: 37.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.799e-05/0.2354, allocations: 21.41 kB / 385.8 MB, free: 37.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.335e-05/0.2354, allocations: 17.94 kB / 385.8 MB, free: 37.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.2364, allocations: 0.5285 MB / 386.3 MB, free: 36.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002605/0.239, allocations: 2.32 MB / 388.6 MB, free: 34.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008102/0.2399, allocations: 497.9 kB / 389.1 MB, free: 34.01 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004447/0.2403, allocations: 270.1 kB / 389.4 MB, free: 33.74 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.36e-05/0.2404, allocations: 11.94 kB / 389.4 MB, free: 33.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.555e-05/0.2404, allocations: 38.56 kB / 389.4 MB, free: 33.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.553e-06/0.2404, allocations: 0 / 389.4 MB, free: 33.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.01169/0.2521, allocations: 3.702 MB / 393.1 MB, free: 29.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.736e-05/0.2521, allocations: 81.67 kB / 393.2 MB, free: 29.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005288/0.2527, allocations: 0.5332 MB / 393.7 MB, free: 29.25 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.862e-05/0.2527, allocations: 33.7 kB / 393.8 MB, free: 29.21 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.2529, allocations: 320.2 kB / 394.1 MB, free: 28.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.253, allocations: 205 kB / 394.3 MB, free: 28.69 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.336e-05/0.253, allocations: 12 kB / 394.3 MB, free: 28.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.128e-05/0.2531, allocations: 366.8 kB / 394.7 MB, free: 28.31 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004879/0.2536, allocations: 253.2 kB / 394.9 MB, free: 28.06 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005083/0.2541, allocations: 356.4 kB / 395.2 MB, free: 27.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005211/0.2546, allocations: 294.1 kB / 395.5 MB, free: 27.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2546, allocations: 0 / 395.5 MB, free: 27.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001262/0.2559, allocations: 0.7569 MB / 396.3 MB, free: 26.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.2559, allocations: 11.95 kB / 396.3 MB, free: 26.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.2559, allocations: 0 / 396.3 MB, free: 26.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001332/0.2561, allocations: 32.83 kB / 396.3 MB, free: 26.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007825/0.2569, allocations: 175.8 kB / 396.5 MB, free: 26.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007121/0.2576, allocations: 1.333 MB / 397.8 MB, free: 24.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000565/0.2582, allocations: 43.91 kB / 397.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.109e-05/0.2582, allocations: 23.98 kB / 397.9 MB, free: 24.87 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002262/0.2585, allocations: 204.9 kB / 398.1 MB, free: 24.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.2586, allocations: 67.2 kB / 398.2 MB, free: 24.6 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001564/0.2601, allocations: 0.8647 MB / 399 MB, free: 23.72 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.2602, allocations: 4 kB / 399 MB, free: 23.72 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.2602, allocations: 7.938 kB / 399 MB, free: 23.71 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.2602, allocations: 3.984 kB / 399.1 MB, free: 23.71 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003243/0.2634, allocations: 1.89 MB / 400.9 MB, free: 21.76 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.2634, allocations: 0 / 400.9 MB, free: 21.76 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004938/0.264, allocations: 111.8 kB / 401.1 MB, free: 21.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002443/0.2664, allocations: 0.4965 MB / 401.5 MB, free: 21.15 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.042e-05/0.2665, allocations: 16 kB / 401.6 MB, free: 21.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003991/0.2705, allocations: 2.946 MB / 404.5 MB, free: 18.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.2705, allocations: 4.031 kB / 404.5 MB, free: 18.05 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002544/0.273, allocations: 1.409 MB / 405.9 MB, free: 16.62 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002123/0.2732, allocations: 208.3 kB / 406.1 MB, free: 16.4 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.826e-05/0.2733, allocations: 20 kB / 406.1 MB, free: 16.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000593/0.2739, allocations: 47.97 kB / 406.2 MB, free: 16.33 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.566e-05/0.274, allocations: 52.38 kB / 406.2 MB, free: 16.28 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-05/0.2741, allocations: 24 kB / 406.3 MB, free: 16.26 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000342/0.2744, allocations: 382.9 kB / 406.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2744, allocations: 0 / 406.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006062/0.275, allocations: 192.1 kB / 406.8 MB, free: 15.7 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002127/0.2753, allocations: 143.2 kB / 407 MB, free: 15.55 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001222/0.2765, allocations: 0.7482 MB / 407.7 MB, free: 14.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2765, allocations: 0 / 407.7 MB, free: 14.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007711/0.2773, allocations: 0.5256 MB / 408.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006307/0.2779, allocations: 96.45 kB / 408.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002263/0.2802, allocations: 1.863 MB / 410.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.2805, allocations: 0.9007 MB / 411.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001915/0.2807, allocations: 51.41 kB / 411.1 MB, free: 11.29 MB / 298.7 MB Notification: Performance of SimCode: time 4.91e-07/0.2807, allocations: 0 / 411.1 MB, free: 11.29 MB / 298.7 MB Notification: Performance of Templates: time 0.01074/0.2914, allocations: 11.68 MB / 422.8 MB, free: 15.61 MB / 314.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches