Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.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_4.0.0_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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001188/0.001188, 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.395/1.395, allocations: 222.9 MB / 240.9 MB, free: 10.99 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.001195/0.001194, allocations: 118 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00084/0.0008401, allocations: 40.08 kB / 350 MB, free: 92 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2111/0.212, allocations: 49.44 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.004346/0.2164, allocations: 4.367 MB / 403.9 MB, free: 28.99 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001981/0.2184, allocations: 1.598 MB / 405.5 MB, free: 27.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002696/0.2187, allocations: 12 kB / 405.5 MB, free: 27.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000306/0.219, allocations: 107.2 kB / 405.6 MB, free: 27.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005761/0.2196, allocations: 307.7 kB / 405.9 MB, free: 26.97 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003172/0.2199, allocations: 195.8 kB / 406.1 MB, free: 26.78 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005314/0.2205, allocations: 0.9353 MB / 407 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002456/0.2207, allocations: 206.3 kB / 407.2 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002669/0.221, allocations: 330.6 kB / 407.5 MB, free: 25.31 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003063/0.2213, allocations: 402.3 kB / 407.9 MB, free: 24.92 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.863e-05/0.2214, allocations: 48 kB / 408 MB, free: 24.87 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003052/0.2217, allocations: 167.9 kB / 408.1 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.2218, allocations: 143.4 kB / 408.3 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002603/0.2221, allocations: 374.1 kB / 408.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007501/0.2228, allocations: 1.11 MB / 409.7 MB, free: 23.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.2229, allocations: 0 / 409.7 MB, free: 23.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.2229, allocations: 0 / 409.7 MB, free: 23.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.377e-06/0.2229, allocations: 0 / 409.7 MB, free: 23.09 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.002059/0.2249, allocations: 1.099 MB / 410.8 MB, free: 21.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.225, allocations: 12.03 kB / 410.8 MB, free: 21.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.2251, allocations: 76.09 kB / 410.9 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005266/0.2256, allocations: 0.5106 MB / 411.4 MB, free: 21.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.53e-05/0.2257, allocations: 67.58 kB / 411.5 MB, free: 21.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001676/0.2259, allocations: 76.42 kB / 411.6 MB, free: 21.15 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008389/0.2267, allocations: 0.602 MB / 412.2 MB, free: 20.53 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.2268, allocations: 3.906 kB / 412.2 MB, free: 20.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.887e-05/0.2268, allocations: 27.98 kB / 412.2 MB, free: 20.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.2268, allocations: 12 kB / 412.2 MB, free: 20.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009068/0.2277, allocations: 0.5282 MB / 412.7 MB, free: 19.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00259/0.2303, allocations: 2.303 MB / 415 MB, free: 17.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007879/0.2312, allocations: 478.8 kB / 415.5 MB, free: 17.06 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004347/0.2316, allocations: 262.3 kB / 415.8 MB, free: 16.8 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.251e-05/0.2316, allocations: 19.97 kB / 415.8 MB, free: 16.78 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.579e-05/0.2317, allocations: 34.56 kB / 415.8 MB, free: 16.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 2.324e-06/0.2317, allocations: 0 / 415.8 MB, free: 16.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.01104/0.2427, allocations: 3.543 MB / 419.4 MB, free: 13.1 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.103e-05/0.2428, allocations: 85.67 kB / 419.5 MB, free: 13 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005184/0.2433, allocations: 0.5409 MB / 420 MB, free: 12.45 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.773e-05/0.2433, allocations: 37.7 kB / 420 MB, free: 12.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001328/0.2435, allocations: 316.3 kB / 420.3 MB, free: 12.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.2436, allocations: 208.9 kB / 420.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001645/0.2438, allocations: 110.2 kB / 420.7 MB, free: 11.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.007e-05/0.2439, allocations: 366.8 kB / 421 MB, free: 11.4 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004583/0.2443, allocations: 245.2 kB / 421.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004948/0.2448, allocations: 348.4 kB / 421.6 MB, free: 10.79 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009551/0.2458, allocations: 0.6059 MB / 422.2 MB, free: 10.15 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2458, allocations: 0 / 422.2 MB, free: 10.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00125/0.2471, allocations: 0.7449 MB / 422.9 MB, free: 9.391 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.2471, allocations: 11.94 kB / 423 MB, free: 9.379 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.2471, allocations: 0 / 423 MB, free: 9.379 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001598/0.2473, allocations: 41.08 kB / 423 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007166/0.248, allocations: 163.8 kB / 423.2 MB, free: 9.176 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007124/0.2487, allocations: 1.324 MB / 424.5 MB, free: 7.719 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005295/0.2493, allocations: 39.97 kB / 424.5 MB, free: 7.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.273e-05/0.2493, allocations: 23.98 kB / 424.5 MB, free: 7.656 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002256/0.2496, allocations: 209.7 kB / 424.7 MB, free: 7.441 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.2497, allocations: 59.48 kB / 424.8 MB, free: 7.383 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001493/0.2512, allocations: 0.8451 MB / 425.6 MB, free: 6.531 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.2512, allocations: 11.94 kB / 425.7 MB, free: 6.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.2512, allocations: 0 / 425.7 MB, free: 6.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.2512, allocations: 3.984 kB / 425.7 MB, free: 6.516 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003003/0.2542, allocations: 1.854 MB / 427.5 MB, free: 4.598 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.2542, allocations: 0 / 427.5 MB, free: 4.598 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004555/0.2547, allocations: 103.9 kB / 427.6 MB, free: 4.496 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002113/0.2568, allocations: 479.1 kB / 428.1 MB, free: 4.027 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.422e-05/0.2569, allocations: 15.98 kB / 428.1 MB, free: 4.012 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003827/0.2607, allocations: 2.881 MB / 431 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2607, allocations: 3.938 kB / 431 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02864/0.2894, allocations: 11.56 MB / 442.5 MB, free: 5.121 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002518/0.2897, allocations: 212.1 kB / 442.8 MB, free: 4.898 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.549e-05/0.2897, allocations: 19.98 kB / 442.8 MB, free: 4.879 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000562/0.2903, allocations: 43.97 kB / 442.8 MB, free: 4.836 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/0.2905, allocations: 44.5 kB / 442.9 MB, free: 4.793 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.136e-05/0.2905, allocations: 19.98 kB / 442.9 MB, free: 4.773 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004407/0.291, allocations: 390.9 kB / 443.3 MB, free: 4.395 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.291, allocations: 0 / 443.3 MB, free: 4.395 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009411/0.2919, allocations: 280.1 kB / 443.5 MB, free: 4.121 MB / 314.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002722/0.2922, allocations: 151.2 kB / 443.7 MB, free: 3.965 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001418/0.2936, allocations: 0.7402 MB / 444.4 MB, free: 3.211 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2937, allocations: 0 / 444.4 MB, free: 3.211 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000865/0.2945, allocations: 0.5177 MB / 444.9 MB, free: 2.684 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008041/0.2953, allocations: 90.78 kB / 445 MB, free: 2.594 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003633/0.299, allocations: 2.414 MB / 447.4 MB, free: 124 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004492/0.2995, allocations: 0.9245 MB / 448.4 MB, free: 15.16 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004162/0.2999, allocations: 80.8 kB / 448.4 MB, free: 15.09 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002106/0.3001, allocations: 59.34 kB / 448.5 MB, free: 15.03 MB / 330.7 MB Notification: Performance of SimCode: time 7.61e-07/0.3001, allocations: 0 / 448.5 MB, free: 15.03 MB / 330.7 MB Notification: Performance of Templates: time 0.02049/0.3206, allocations: 13.71 MB / 462.2 MB, free: 1.445 MB / 330.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches