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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001562/0.001562, allocations: 110.2 kB / 17.29 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001921/0.001921, allocations: 193.3 kB / 18.21 MB, free: 5.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 222.9 MB / 241.9 MB, free: 13.68 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 51.23 kB / 300.8 MB, free: 5.965 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09099/0.09212, allocations: 49.44 MB / 350.2 MB, free: 4.52 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.00576/0.09792, allocations: 4.38 MB / 354.6 MB, free: 116 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002999/0.1009, allocations: 1.578 MB / 356.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005625/0.1015, allocations: 11.94 kB / 356.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004892/0.102, allocations: 99.22 kB / 356.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001174/0.1033, allocations: 314.5 kB / 356.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005311/0.1038, allocations: 207.8 kB / 356.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001256/0.1051, allocations: 0.9722 MB / 357.8 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004332/0.1055, allocations: 241.3 kB / 358 MB, free: 12.69 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000686/0.1062, allocations: 378.7 kB / 358.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006562/0.1069, allocations: 422.2 kB / 358.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002025/0.1071, allocations: 96 kB / 358.9 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004873/0.1076, allocations: 219.9 kB / 359.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001931/0.1078, allocations: 199.3 kB / 359.3 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004627/0.1083, allocations: 418.1 kB / 359.7 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009306/0.1092, allocations: 0.9273 MB / 360.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1092, allocations: 0 / 360.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1092, allocations: 0 / 360.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.605e-05/0.1093, allocations: 0 / 360.6 MB, free: 10.06 MB / 302.1 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.002691/0.112, allocations: 1.095 MB / 361.7 MB, free: 8.914 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.112, allocations: 8.031 kB / 361.8 MB, free: 8.906 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001809/0.1122, allocations: 83.94 kB / 361.8 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008212/0.113, allocations: 0.5108 MB / 362.3 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001266/0.1132, allocations: 67.58 kB / 362.4 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002588/0.1134, allocations: 72.39 kB / 362.5 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.1148, allocations: 0.6058 MB / 363.1 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.407e-05/0.1149, allocations: 0 / 363.1 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.698e-05/0.1149, allocations: 24 kB / 363.1 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/0.115, allocations: 19.94 kB / 363.1 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001351/0.1163, allocations: 0.5243 MB / 363.7 MB, free: 6.938 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003962/0.1203, allocations: 2.303 MB / 366 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.1213, allocations: 488.9 kB / 366.4 MB, free: 4.027 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005454/0.1219, allocations: 266.1 kB / 366.7 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.426e-05/0.1219, allocations: 4 kB / 366.7 MB, free: 3.758 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.122, allocations: 42.56 kB / 366.7 MB, free: 3.707 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.114e-06/0.122, allocations: 0 / 366.7 MB, free: 3.707 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.01389/0.1359, allocations: 3.54 MB / 370.3 MB, free: 80 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1475/0.2834, allocations: 81.8 kB / 370.4 MB, free: 25.56 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00086/0.2843, allocations: 0.5334 MB / 370.9 MB, free: 25.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000128/0.2845, allocations: 39.14 kB / 370.9 MB, free: 25.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001842/0.2847, allocations: 310.4 kB / 371.2 MB, free: 25.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001574/0.2848, allocations: 213.1 kB / 371.4 MB, free: 25.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002086/0.285, allocations: 110.8 kB / 371.6 MB, free: 25.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.905e-05/0.2851, allocations: 366.8 kB / 371.9 MB, free: 24.92 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006089/0.2858, allocations: 246.5 kB / 372.1 MB, free: 24.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005796/0.2863, allocations: 349.6 kB / 372.5 MB, free: 24.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.2874, allocations: 0.6015 MB / 373.1 MB, free: 24.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.2875, allocations: 2.25 kB / 373.1 MB, free: 24.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001503/0.289, allocations: 0.7453 MB / 373.8 MB, free: 24.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.289, allocations: 6.344 kB / 373.8 MB, free: 24.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.289, allocations: 7.234 kB / 373.9 MB, free: 24.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001743/0.2892, allocations: 29.42 kB / 373.9 MB, free: 24.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008459/0.2901, allocations: 162.8 kB / 374 MB, free: 24.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008233/0.2909, allocations: 1.439 MB / 375.5 MB, free: 22.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006095/0.2915, allocations: 37.44 kB / 375.5 MB, free: 22.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.364e-05/0.2916, allocations: 25.2 kB / 375.5 MB, free: 22.64 MB / 302.1 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.0002529/0.2918, allocations: 204 kB / 375.7 MB, free: 22.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001311/0.292, allocations: 60.62 kB / 375.8 MB, free: 22.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001726/0.2937, allocations: 0.8442 MB / 376.6 MB, free: 22.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.2937, allocations: 8.375 kB / 376.7 MB, free: 22.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.434e-06/0.2937, allocations: 0 / 376.7 MB, free: 22.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.2938, allocations: 3.094 kB / 376.7 MB, free: 22.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003634/0.2974, allocations: 1.861 MB / 378.5 MB, free: 21.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.2974, allocations: 4.781 kB / 378.5 MB, free: 21.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005338/0.298, allocations: 110.5 kB / 378.6 MB, free: 21.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002313/0.3003, allocations: 474.5 kB / 379.1 MB, free: 21.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.548e-05/0.3004, allocations: 13.86 kB / 379.1 MB, free: 21.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004488/0.3048, allocations: 3.155 MB / 382.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3049, allocations: 0 / 382.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002841/0.3077, allocations: 1.369 MB / 383.6 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003169/0.3081, allocations: 210.7 kB / 383.8 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/0.3082, allocations: 12.17 kB / 383.8 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006349/0.3088, allocations: 43.61 kB / 383.9 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/0.309, allocations: 44.2 kB / 383.9 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-05/0.3091, allocations: 26.45 kB / 384 MB, free: 17.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004716/0.3095, allocations: 392.1 kB / 384.3 MB, free: 17.6 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.3095, allocations: 0 / 384.3 MB, free: 17.6 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007642/0.3103, allocations: 184.5 kB / 384.5 MB, free: 17.58 MB / 302.1 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.0002721/0.3106, allocations: 157.2 kB / 384.7 MB, free: 17.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001744/0.3123, allocations: 0.7472 MB / 385.4 MB, free: 17.13 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.3124, allocations: 64 / 385.4 MB, free: 17.13 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008677/0.3132, allocations: 0.5273 MB / 386 MB, free: 16.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007021/0.314, allocations: 96.45 kB / 386 MB, free: 16.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002692/0.3167, allocations: 1.779 MB / 387.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003515/0.317, allocations: 0.9036 MB / 388.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000235/0.3173, allocations: 54.44 kB / 388.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3173, allocations: 0 / 388.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of Templates: time 0.01392/0.3312, allocations: 11.74 MB / 400.5 MB, free: 7.695 MB / 302.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches