Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001055/0.001055, allocations: 192.6 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 226.5 MB / 244.7 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008113/0.0008116, allocations: 96.16 kB / 296.7 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002525/0.0002525, allocations: 8 kB / 356.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2511, allocations: 51.29 MB / 408.1 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.003439/0.2546, allocations: 3.791 MB / 411.8 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002147/0.2568, allocations: 1.531 MB / 413.4 MB, free: 22.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003207/0.2571, allocations: 8 kB / 413.4 MB, free: 22.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002738/0.2574, allocations: 95.23 kB / 413.5 MB, free: 22.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006112/0.258, allocations: 294.2 kB / 413.8 MB, free: 22.01 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003054/0.2583, allocations: 147.8 kB / 413.9 MB, free: 21.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005775/0.2589, allocations: 0.8731 MB / 414.8 MB, free: 20.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002696/0.2592, allocations: 206.2 kB / 415 MB, free: 20.78 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003249/0.2595, allocations: 310.8 kB / 415.3 MB, free: 20.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003246/0.2599, allocations: 358.5 kB / 415.6 MB, free: 20.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.318e-05/0.2599, allocations: 44 kB / 415.7 MB, free: 20.08 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002829/0.2602, allocations: 159.9 kB / 415.8 MB, free: 19.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.417e-05/0.2603, allocations: 139.4 kB / 416 MB, free: 19.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002359/0.2606, allocations: 368 kB / 416.3 MB, free: 19.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000602/0.2612, allocations: 0.8929 MB / 417.2 MB, free: 18.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2612, allocations: 4 kB / 417.2 MB, free: 18.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2612, allocations: 0 / 417.2 MB, free: 18.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.677e-06/0.2612, allocations: 0 / 417.2 MB, free: 18.52 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.001891/0.2631, allocations: 0.9742 MB / 418.2 MB, free: 17.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.2632, allocations: 12.03 kB / 418.2 MB, free: 17.49 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002221/0.2634, allocations: 91.98 kB / 418.3 MB, free: 17.4 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006016/0.264, allocations: 0.5028 MB / 418.8 MB, free: 16.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.069e-05/0.2641, allocations: 71.58 kB / 418.9 MB, free: 16.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001759/0.2643, allocations: 72.48 kB / 418.9 MB, free: 16.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.2653, allocations: 0.6059 MB / 419.6 MB, free: 16.08 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.281e-05/0.2653, allocations: 3.938 kB / 419.6 MB, free: 16.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.904e-05/0.2654, allocations: 23.94 kB / 419.6 MB, free: 16.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.2654, allocations: 16 kB / 419.6 MB, free: 16.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009818/0.2664, allocations: 0.5283 MB / 420.1 MB, free: 15.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002969/0.2694, allocations: 2.338 MB / 422.5 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008681/0.2703, allocations: 496 kB / 422.9 MB, free: 12.56 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004607/0.2708, allocations: 270.1 kB / 423.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.477e-05/0.2708, allocations: 7.938 kB / 423.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.2708, allocations: 42.56 kB / 423.3 MB, free: 12.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 2.615e-06/0.2708, allocations: 0 / 423.3 MB, free: 12.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.01225/0.2831, allocations: 3.69 MB / 426.9 MB, free: 8.453 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.065e-05/0.2832, allocations: 93.61 kB / 427 MB, free: 8.34 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006682/0.2839, allocations: 0.5409 MB / 427.6 MB, free: 7.789 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.526e-05/0.2839, allocations: 33.7 kB / 427.6 MB, free: 7.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001573/0.2841, allocations: 316.3 kB / 427.9 MB, free: 7.434 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000146/0.2843, allocations: 212.9 kB / 428.1 MB, free: 7.223 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.744e-05/0.2843, allocations: 12 kB / 428.1 MB, free: 7.211 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.428e-05/0.2844, allocations: 366.8 kB / 428.5 MB, free: 6.844 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004878/0.2849, allocations: 257.2 kB / 428.8 MB, free: 6.594 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005223/0.2854, allocations: 352.4 kB / 429.1 MB, free: 6.219 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001007/0.2864, allocations: 0.6215 MB / 429.7 MB, free: 5.566 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2865, allocations: 0 / 429.7 MB, free: 5.566 MB / 298.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001353/0.2878, allocations: 0.7607 MB / 430.5 MB, free: 4.793 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.2878, allocations: 4 kB / 430.5 MB, free: 4.789 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.2879, allocations: 4 kB / 430.5 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000186/0.2881, allocations: 36.81 kB / 430.5 MB, free: 4.746 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007576/0.2888, allocations: 171.8 kB / 430.7 MB, free: 4.578 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008789/0.2897, allocations: 1.331 MB / 432 MB, free: 3.113 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005894/0.2903, allocations: 39.98 kB / 432.1 MB, free: 3.074 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.66e-05/0.2904, allocations: 23.98 kB / 432.1 MB, free: 3.051 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.0002951/0.2907, allocations: 205.7 kB / 432.3 MB, free: 2.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.2908, allocations: 55.34 kB / 432.3 MB, free: 2.785 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001575/0.2924, allocations: 0.8647 MB / 433.2 MB, free: 1.914 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.2924, allocations: 8 kB / 433.2 MB, free: 1.906 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.2924, allocations: 0 / 433.2 MB, free: 1.906 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.2924, allocations: 7.984 kB / 433.2 MB, free: 1.898 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003414/0.2958, allocations: 1.89 MB / 435.1 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.2959, allocations: 3.984 kB / 435.1 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005144/0.2964, allocations: 107.9 kB / 435.2 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002405/0.2988, allocations: 0.5003 MB / 435.7 MB, free: 15.33 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.553e-05/0.2989, allocations: 15.98 kB / 435.7 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00495/0.3038, allocations: 2.949 MB / 438.7 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3039, allocations: 0 / 438.7 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003138/0.307, allocations: 1.409 MB / 440.1 MB, free: 10.81 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003511/0.3074, allocations: 208.3 kB / 440.3 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.175e-05/0.3075, allocations: 8 kB / 440.3 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000587/0.3081, allocations: 51.91 kB / 440.4 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.3082, allocations: 52.48 kB / 440.4 MB, free: 10.47 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.45e-05/0.3083, allocations: 20.03 kB / 440.4 MB, free: 10.45 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004828/0.3088, allocations: 390.8 kB / 440.8 MB, free: 10.07 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3088, allocations: 0 / 440.8 MB, free: 10.07 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007679/0.3095, allocations: 188.1 kB / 441 MB, free: 9.891 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 (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.0003327/0.3099, allocations: 163.1 kB / 441.1 MB, free: 9.723 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001598/0.3115, allocations: 0.7404 MB / 441.9 MB, free: 8.969 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.3115, allocations: 0 / 441.9 MB, free: 8.969 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009452/0.3125, allocations: 0.5332 MB / 442.4 MB, free: 8.426 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007586/0.3132, allocations: 90.62 kB / 442.5 MB, free: 8.34 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003428/0.3167, allocations: 1.869 MB / 444.4 MB, free: 6.434 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007467/0.3174, allocations: 0.9046 MB / 445.3 MB, free: 5.5 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003123/0.3178, allocations: 55.41 kB / 445.3 MB, free: 5.445 MB / 314.7 MB Notification: Performance of SimCode: time 1.393e-06/0.3178, allocations: 0 / 445.3 MB, free: 5.445 MB / 314.7 MB Notification: Performance of Templates: time 0.01931/0.3371, allocations: 11.66 MB / 457 MB, free: 9.824 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches