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.001038/0.001038, allocations: 110.4 kB / 16.92 MB, free: 6.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.001032/0.001032, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.273/1.273, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 56.2 kB / 300.6 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08637/0.08757, allocations: 49.44 MB / 350.1 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005431/0.09303, allocations: 4.36 MB / 354.4 MB, free: 40 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002541/0.09559, allocations: 1.586 MB / 356 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003313/0.09595, allocations: 8 kB / 356 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003477/0.0963, allocations: 130.8 kB / 356.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007388/0.09708, allocations: 357.9 kB / 356.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003916/0.09748, allocations: 235.6 kB / 356.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000776/0.09827, allocations: 0.9744 MB / 357.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003212/0.0986, allocations: 245.3 kB / 357.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000371/0.09898, allocations: 374.7 kB / 358.3 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004345/0.09942, allocations: 426.2 kB / 358.7 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001213/0.09955, allocations: 96 kB / 358.8 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003513/0.09991, allocations: 211.9 kB / 359 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001476/0.1001, allocations: 203.3 kB / 359.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003493/0.1004, allocations: 414.1 kB / 359.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009541/0.1014, allocations: 1.149 MB / 360.8 MB, free: 9.656 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1014, allocations: 0 / 360.8 MB, free: 9.656 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1014, allocations: 0 / 360.8 MB, free: 9.656 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.1014, allocations: 0 / 360.8 MB, free: 9.656 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.002182/0.1036, allocations: 1.099 MB / 361.9 MB, free: 8.508 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/0.1036, allocations: 11.97 kB / 361.9 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001403/0.1038, allocations: 80 kB / 362 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006179/0.1044, allocations: 0.5068 MB / 362.5 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.819e-05/0.1045, allocations: 71.56 kB / 362.5 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001895/0.1047, allocations: 72.39 kB / 362.6 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009962/0.1057, allocations: 0.6058 MB / 363.2 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.1057, allocations: 0 / 363.2 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.487e-05/0.1058, allocations: 24 kB / 363.2 MB, free: 7.078 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.626e-05/0.1058, allocations: 19.98 kB / 363.3 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001087/0.1069, allocations: 0.5243 MB / 363.8 MB, free: 6.535 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00324/0.1102, allocations: 2.306 MB / 366.1 MB, free: 4.121 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009387/0.1111, allocations: 488 kB / 366.6 MB, free: 3.625 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005258/0.1117, allocations: 263.2 kB / 366.8 MB, free: 3.363 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.962e-05/0.1117, allocations: 4 kB / 366.8 MB, free: 3.359 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/0.1117, allocations: 42.56 kB / 366.9 MB, free: 3.309 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.934e-06/0.1117, allocations: 0 / 366.9 MB, free: 3.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.1537/0.2655, allocations: 3.545 MB / 370.4 MB, free: 25.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.2655, allocations: 84.53 kB / 370.5 MB, free: 25.15 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007659/0.2663, allocations: 0.5338 MB / 371 MB, free: 25.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.461e-05/0.2664, allocations: 34.11 kB / 371.1 MB, free: 25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/0.2666, allocations: 315.5 kB / 371.4 MB, free: 24.92 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/0.2667, allocations: 209.4 kB / 371.6 MB, free: 24.85 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001961/0.2669, allocations: 111.9 kB / 371.7 MB, free: 24.83 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.906e-05/0.267, allocations: 366.5 kB / 372 MB, free: 24.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005505/0.2676, allocations: 246 kB / 372.3 MB, free: 24.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005923/0.2682, allocations: 348.9 kB / 372.6 MB, free: 24.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001099/0.2693, allocations: 0.6031 MB / 373.2 MB, free: 24.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2693, allocations: 0 / 373.2 MB, free: 24.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001502/0.2708, allocations: 0.7449 MB / 374 MB, free: 23.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.2708, allocations: 10.03 kB / 374 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.2709, allocations: 2.719 kB / 374 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000176/0.271, allocations: 29.22 kB / 374 MB, free: 23.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008433/0.2719, allocations: 167.5 kB / 374.2 MB, free: 23.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008034/0.2727, allocations: 1.44 MB / 375.6 MB, free: 22.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000569/0.2733, allocations: 33.89 kB / 375.6 MB, free: 22.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.841e-05/0.2734, allocations: 27.59 kB / 375.7 MB, free: 22.23 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.0002306/0.2736, allocations: 202.1 kB / 375.9 MB, free: 22.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.2737, allocations: 61.81 kB / 375.9 MB, free: 22.03 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001724/0.2755, allocations: 0.8405 MB / 376.8 MB, free: 21.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.2755, allocations: 8.25 kB / 376.8 MB, free: 21.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.2755, allocations: 2.188 kB / 376.8 MB, free: 21.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.2755, allocations: 8.266 kB / 376.8 MB, free: 21.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003455/0.279, allocations: 1.853 MB / 378.6 MB, free: 20.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.279, allocations: 1.469 kB / 378.6 MB, free: 20.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004989/0.2795, allocations: 107 kB / 378.7 MB, free: 20.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002283/0.2818, allocations: 469.3 kB / 379.2 MB, free: 20.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.536e-05/0.2818, allocations: 19.23 kB / 379.2 MB, free: 20.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004363/0.2862, allocations: 3.155 MB / 382.4 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.2862, allocations: 9.031 kB / 382.4 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002788/0.289, allocations: 1.367 MB / 383.8 MB, free: 17.58 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002842/0.2893, allocations: 206.2 kB / 384 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000117/0.2894, allocations: 13.14 kB / 384 MB, free: 17.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006114/0.2901, allocations: 38.66 kB / 384 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/0.2902, allocations: 48.67 kB / 384.1 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.566e-05/0.2903, allocations: 17.77 kB / 384.1 MB, free: 17.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004752/0.2907, allocations: 393.5 kB / 384.5 MB, free: 17.19 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2908, allocations: 0 / 384.5 MB, free: 17.19 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007508/0.2915, allocations: 189.7 kB / 384.6 MB, free: 17.16 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.0002607/0.2918, allocations: 152.9 kB / 384.8 MB, free: 17.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001701/0.2935, allocations: 0.7518 MB / 385.5 MB, free: 16.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.2935, allocations: 2.219 kB / 385.5 MB, free: 16.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008575/0.2944, allocations: 0.5262 MB / 386.1 MB, free: 16.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00073/0.2951, allocations: 94.77 kB / 386.2 MB, free: 16.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00276/0.2979, allocations: 1.474 MB / 387.6 MB, free: 15.56 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004176/0.2983, allocations: 0.8993 MB / 388.5 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003695/0.2987, allocations: 78.42 kB / 388.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001786/0.2989, allocations: 54.09 kB / 388.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2989, allocations: 0 / 388.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of Templates: time 0.01525/0.3141, allocations: 10.24 MB / 398.9 MB, free: 8.844 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins/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