Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001536/0.001536, allocations: 108.4 kB / 18.36 MB, free: 4.633 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.001549/0.001549, allocations: 191 kB / 19.29 MB, free: 3.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.392/1.392, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00117/0.001171, allocations: 47.94 kB / 282.1 MB, free: 2.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08517/0.08635, allocations: 46.63 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.004392/0.09078, allocations: 3.337 MB / 332.1 MB, free: 404 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001993/0.09279, allocations: 1.396 MB / 333.5 MB, free: 14.99 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001495/0.09295, allocations: 8 kB / 333.5 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002613/0.09558, allocations: 2.663 MB / 336.1 MB, free: 12.31 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003601/0.09596, allocations: 166.7 kB / 336.3 MB, free: 12.15 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006193/0.09659, allocations: 287.5 kB / 336.6 MB, free: 11.87 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001513/0.09811, allocations: 1.794 MB / 338.4 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002062/0.09832, allocations: 139.3 kB / 338.5 MB, free: 9.93 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003248/0.09866, allocations: 305 kB / 338.8 MB, free: 9.629 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003544/0.09902, allocations: 322.9 kB / 339.1 MB, free: 9.312 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.674e-05/0.09911, allocations: 44 kB / 339.2 MB, free: 9.27 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000141/0.09925, allocations: 75.98 kB / 339.2 MB, free: 9.195 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005347/0.0998, allocations: 0.8491 MB / 340.1 MB, free: 8.344 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006278/0.1004, allocations: 0.9346 MB / 341 MB, free: 7.402 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001846/0.1023, allocations: 2.612 MB / 343.6 MB, free: 4.781 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1023, allocations: 0 / 343.6 MB, free: 4.781 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1023, allocations: 0 / 343.6 MB, free: 4.781 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.797e-05/0.1023, allocations: 0 / 343.6 MB, free: 4.781 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.003734/0.1061, allocations: 2.79 MB / 346.4 MB, free: 1.926 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.1061, allocations: 11.97 kB / 346.4 MB, free: 1.914 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002958/0.1064, allocations: 281.3 kB / 346.7 MB, free: 1.637 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002424/0.1088, allocations: 1.828 MB / 348.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.245e-05/0.1089, allocations: 63.27 kB / 348.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001614/0.1091, allocations: 47.92 kB / 348.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006461/0.1098, allocations: 395 kB / 349 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.1098, allocations: 0 / 349 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.709e-05/0.1098, allocations: 16 kB / 349.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.1098, allocations: 11.94 kB / 349.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006561/0.1105, allocations: 327.8 kB / 349.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0038/0.1143, allocations: 2.899 MB / 352.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005957/0.1149, allocations: 320.9 kB / 352.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002993/0.1152, allocations: 157.7 kB / 352.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.887e-05/0.1153, allocations: 8 kB / 352.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.028e-05/0.1153, allocations: 47.03 kB / 352.8 MB, free: 11.33 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.703e-06/0.1153, allocations: 4 kB / 352.8 MB, free: 11.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.004408/0.1198, allocations: 2.358 MB / 355.2 MB, free: 8.898 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.006e-05/0.1198, allocations: 89.58 kB / 355.3 MB, free: 8.793 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005382/0.1252, allocations: 5.435 MB / 360.7 MB, free: 3.355 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.383e-05/0.1253, allocations: 33.7 kB / 360.7 MB, free: 3.316 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009831/0.1262, allocations: 1.207 MB / 361.9 MB, free: 2.105 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.1264, allocations: 173.5 kB / 362.1 MB, free: 1.934 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001283/0.1265, allocations: 86.25 kB / 362.2 MB, free: 1.844 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.1266, allocations: 326 kB / 362.5 MB, free: 1.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003001/0.1269, allocations: 141.1 kB / 362.6 MB, free: 1.383 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003507/0.1273, allocations: 221.7 kB / 362.9 MB, free: 1.141 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006529/0.1279, allocations: 380.3 kB / 363.2 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.249e-06/0.128, allocations: 8 kB / 363.2 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001155/0.1291, allocations: 0.6839 MB / 363.9 MB, free: 40 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.1292, allocations: 4 kB / 363.9 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.1292, allocations: 4 kB / 363.9 MB, free: 32 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.336e-05/0.1292, allocations: 4.25 kB / 363.9 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005175/0.1297, allocations: 127.8 kB / 364.1 MB, free: 15.9 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.888e-06/0.1298, allocations: 4 kB / 364.1 MB, free: 15.9 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000398/0.1302, allocations: 19.92 kB / 364.1 MB, free: 15.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.092e-05/0.1302, allocations: 16 kB / 364.1 MB, free: 15.86 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009684/0.1312, allocations: 0.9192 MB / 365 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002979/0.1315, allocations: 272.4 kB / 365.3 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001291/0.1328, allocations: 0.7746 MB / 366.1 MB, free: 13.88 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.1328, allocations: 4 kB / 366.1 MB, free: 13.88 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.1328, allocations: 11.92 kB / 366.1 MB, free: 13.87 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.1328, allocations: 0 / 366.1 MB, free: 13.87 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001509/0.1343, allocations: 1.469 MB / 367.5 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.1343, allocations: 0 / 367.5 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004556/0.1348, allocations: 99.88 kB / 367.6 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003304/0.1352, allocations: 88.78 kB / 367.7 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.272e-05/0.1352, allocations: 11.98 kB / 367.7 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005386/0.1357, allocations: 0.6342 MB / 368.4 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.1358, allocations: 4.062 kB / 368.4 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001526/0.1373, allocations: 1.061 MB / 369.4 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009551/0.1383, allocations: 493.6 kB / 369.9 MB, free: 9.895 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002056/0.1385, allocations: 15.98 kB / 369.9 MB, free: 9.879 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004896/0.139, allocations: 16 kB / 369.9 MB, free: 9.863 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.373e-05/0.139, allocations: 28.39 kB / 370 MB, free: 9.836 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.609e-05/0.1391, allocations: 16.11 kB / 370 MB, free: 9.82 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00537/0.1445, allocations: 3.97 MB / 374 MB, free: 5.859 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.1445, allocations: 0 / 374 MB, free: 5.859 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009627/0.1455, allocations: 204 kB / 374.2 MB, free: 5.66 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * 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 {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001108/0.1466, allocations: 422.2 kB / 374.6 MB, free: 5.246 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009116/0.1475, allocations: 380.8 kB / 374.9 MB, free: 4.871 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.1475, allocations: 0.5 kB / 374.9 MB, free: 4.871 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004601/0.148, allocations: 218.4 kB / 375.2 MB, free: 4.66 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001095/0.1491, allocations: 195.1 kB / 375.3 MB, free: 4.465 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1366/0.2857, allocations: 5.397 MB / 380.7 MB, free: 53.33 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001711/0.2874, allocations: 1.815 MB / 382.6 MB, free: 52.6 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006561/0.2881, allocations: 268.6 kB / 382.8 MB, free: 52.58 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002495/0.2884, allocations: 87.14 kB / 382.9 MB, free: 52.58 MB / 318.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2884, allocations: 0 / 382.9 MB, free: 52.58 MB / 318.1 MB Notification: Performance of Templates: time 0.02953/0.3179, allocations: 15.25 MB / 398.2 MB, free: 46.47 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches