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.001161/0.001161, allocations: 110 kB / 17.68 MB, free: 5.332 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.00104/0.00104, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.32/1.32, allocations: 222.9 MB / 242.3 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 47.66 kB / 302.1 MB, free: 5.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09804/0.09961, allocations: 49.45 MB / 351.5 MB, free: 3.648 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005141/0.1048, allocations: 4.342 MB / 355.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002312/0.1071, allocations: 1.594 MB / 357.4 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002444/0.1074, allocations: 11.94 kB / 357.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00033/0.1077, allocations: 126.8 kB / 357.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006842/0.1084, allocations: 353.6 kB / 357.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000384/0.1088, allocations: 231.7 kB / 358.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000808/0.1096, allocations: 0.986 MB / 359.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003155/0.11, allocations: 241.3 kB / 359.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003689/0.1103, allocations: 370.8 kB / 359.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004559/0.1108, allocations: 430.2 kB / 360.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001058/0.1109, allocations: 100 kB / 360.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00032/0.1113, allocations: 215.9 kB / 360.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001484/0.1114, allocations: 199.3 kB / 360.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003284/0.1117, allocations: 418 kB / 361.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009327/0.1127, allocations: 1.156 MB / 362.2 MB, free: 8.871 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1127, allocations: 3.938 kB / 362.2 MB, free: 8.867 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1127, allocations: 0 / 362.2 MB, free: 8.867 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.616e-06/0.1127, allocations: 0 / 362.2 MB, free: 8.867 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.002469/0.1152, allocations: 1.103 MB / 363.3 MB, free: 7.715 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.1152, allocations: 12.03 kB / 363.3 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001474/0.1154, allocations: 80 kB / 363.4 MB, free: 7.625 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007589/0.1162, allocations: 0.5029 MB / 363.9 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.059e-05/0.1163, allocations: 75.58 kB / 364 MB, free: 7.004 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001842/0.1165, allocations: 72.38 kB / 364.1 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/0.1175, allocations: 0.6097 MB / 364.7 MB, free: 6.305 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.1175, allocations: 0 / 364.7 MB, free: 6.305 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.226e-05/0.1175, allocations: 24 kB / 364.7 MB, free: 6.281 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/0.1176, allocations: 16 kB / 364.7 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001062/0.1186, allocations: 0.5282 MB / 365.2 MB, free: 5.738 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003193/0.1218, allocations: 2.283 MB / 367.5 MB, free: 3.348 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009601/0.1228, allocations: 492.9 kB / 368 MB, free: 2.844 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005172/0.1233, allocations: 263.2 kB / 368.3 MB, free: 2.582 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.26e-05/0.1234, allocations: 4 kB / 368.3 MB, free: 2.578 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.1234, allocations: 42.56 kB / 368.3 MB, free: 2.527 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.783e-06/0.1234, allocations: 0 / 368.3 MB, free: 2.527 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.1628/0.2863, allocations: 3.526 MB / 371.8 MB, free: 25.22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.169e-05/0.2863, allocations: 88.64 kB / 371.9 MB, free: 25.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007152/0.2871, allocations: 0.5356 MB / 372.5 MB, free: 25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.491e-05/0.2871, allocations: 36.8 kB / 372.5 MB, free: 24.97 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/0.2873, allocations: 318.5 kB / 372.8 MB, free: 24.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/0.2874, allocations: 207.9 kB / 373 MB, free: 24.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001929/0.2876, allocations: 112.3 kB / 373.1 MB, free: 24.58 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.995e-05/0.2877, allocations: 367.2 kB / 373.5 MB, free: 24.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005361/0.2882, allocations: 247 kB / 373.7 MB, free: 24.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005632/0.2888, allocations: 345.8 kB / 374.1 MB, free: 23.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/0.2899, allocations: 0.6081 MB / 374.7 MB, free: 23.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.29, allocations: 0 / 374.7 MB, free: 23.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001406/0.2914, allocations: 0.7433 MB / 375.4 MB, free: 23.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.2914, allocations: 6.875 kB / 375.4 MB, free: 23.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.2914, allocations: 1.375 kB / 375.4 MB, free: 23.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001715/0.2916, allocations: 34.22 kB / 375.4 MB, free: 23.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007962/0.2924, allocations: 172.2 kB / 375.6 MB, free: 23.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007507/0.2932, allocations: 1.43 MB / 377 MB, free: 21.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005609/0.2937, allocations: 45.41 kB / 377.1 MB, free: 21.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.12e-05/0.2938, allocations: 24.3 kB / 377.1 MB, free: 21.84 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.0002215/0.294, allocations: 205.9 kB / 377.3 MB, free: 21.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/0.2941, allocations: 58.11 kB / 377.4 MB, free: 21.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001711/0.2959, allocations: 0.8409 MB / 378.2 MB, free: 21.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.2959, allocations: 10.56 kB / 378.2 MB, free: 21.24 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.043e-06/0.2959, allocations: 5.406 kB / 378.2 MB, free: 21.24 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.415e-06/0.2959, allocations: 3.328 kB / 378.2 MB, free: 21.24 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003402/0.2993, allocations: 1.846 MB / 380.1 MB, free: 20.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.2993, allocations: 8.953 kB / 380.1 MB, free: 20.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000517/0.2998, allocations: 109.3 kB / 380.2 MB, free: 20.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002256/0.3021, allocations: 471.6 kB / 380.7 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.738e-05/0.3022, allocations: 13.56 kB / 380.7 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004359/0.3065, allocations: 3.152 MB / 383.8 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.3066, allocations: 5.312 kB / 383.8 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002733/0.3093, allocations: 1.364 MB / 385.2 MB, free: 17.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002494/0.3096, allocations: 206.4 kB / 385.4 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.587e-05/0.3096, allocations: 20.17 kB / 385.4 MB, free: 17.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000598/0.3103, allocations: 42.61 kB / 385.5 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.3104, allocations: 48.95 kB / 385.5 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.317e-05/0.3104, allocations: 21.33 kB / 385.5 MB, free: 17.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004473/0.3109, allocations: 390 kB / 385.9 MB, free: 16.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3109, allocations: 0 / 385.9 MB, free: 16.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006982/0.3116, allocations: 189.7 kB / 386.1 MB, free: 16.8 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.000238/0.3119, allocations: 150.3 kB / 386.2 MB, free: 16.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001368/0.3132, allocations: 0.7239 MB / 387 MB, free: 16.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3132, allocations: 1.859 kB / 387 MB, free: 16.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009353/0.3142, allocations: 0.5225 MB / 387.5 MB, free: 16.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008104/0.315, allocations: 96.48 kB / 387.6 MB, free: 16.03 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002364/0.3174, allocations: 1.469 MB / 389 MB, free: 15.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.3177, allocations: 0.9034 MB / 389.9 MB, free: 14.51 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002858/0.318, allocations: 69.31 kB / 390 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001755/0.3182, allocations: 57.2 kB / 390.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of SimCode: time 4.3e-07/0.3182, allocations: 0 / 390.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of Templates: time 0.01355/0.3318, allocations: 10.24 MB / 400.3 MB, free: 8.047 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 -s gbode -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