Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001602/0.001602, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 63.83 kB / 307 MB, free: 0.6211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09588/0.09774, allocations: 50.54 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.006023/0.1038, allocations: 4.367 MB / 361.9 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002791/0.1066, allocations: 1.66 MB / 363.6 MB, free: 8.004 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002625/0.1069, allocations: 15.94 kB / 363.6 MB, free: 7.988 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003721/0.1073, allocations: 122.9 kB / 363.7 MB, free: 7.867 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007926/0.1081, allocations: 353.9 kB / 364 MB, free: 7.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004723/0.1086, allocations: 239.6 kB / 364.3 MB, free: 7.285 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001006/0.1096, allocations: 0.9784 MB / 365.3 MB, free: 6.305 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003734/0.11, allocations: 241.3 kB / 365.5 MB, free: 6.066 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000508/0.1105, allocations: 382.6 kB / 365.9 MB, free: 5.691 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005218/0.111, allocations: 430.3 kB / 366.3 MB, free: 5.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000139/0.1112, allocations: 96 kB / 366.4 MB, free: 5.176 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003866/0.1116, allocations: 219.9 kB / 366.6 MB, free: 4.961 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001802/0.1118, allocations: 191.3 kB / 366.8 MB, free: 4.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003899/0.1122, allocations: 418 kB / 367.2 MB, free: 4.363 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001146/0.1133, allocations: 1.153 MB / 368.3 MB, free: 3.207 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1133, allocations: 0 / 368.3 MB, free: 3.207 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1133, allocations: 0 / 368.3 MB, free: 3.207 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.848e-06/0.1133, allocations: 0 / 368.3 MB, free: 3.207 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.00244/0.1158, allocations: 1.099 MB / 369.4 MB, free: 2.055 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.1158, allocations: 8.031 kB / 369.4 MB, free: 2.047 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002593/0.1161, allocations: 91.92 kB / 369.5 MB, free: 1.957 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007568/0.1169, allocations: 0.5146 MB / 370 MB, free: 1.406 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-05/0.117, allocations: 71.52 kB / 370.1 MB, free: 1.332 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000203/0.1172, allocations: 72.48 kB / 370.2 MB, free: 1.262 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.1184, allocations: 0.6058 MB / 370.8 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.985e-05/0.1184, allocations: 0 / 370.8 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.869e-05/0.1185, allocations: 24 kB / 370.8 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.58e-05/0.1185, allocations: 12 kB / 370.8 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001239/0.1198, allocations: 0.5282 MB / 371.4 MB, free: 76 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1521/0.2719, allocations: 2.316 MB / 373.7 MB, free: 19.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009231/0.2728, allocations: 482.5 kB / 374.1 MB, free: 18.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005203/0.2733, allocations: 265.2 kB / 374.4 MB, free: 18.72 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.2734, allocations: 4.812 kB / 374.4 MB, free: 18.72 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.668e-05/0.2734, allocations: 37.28 kB / 374.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.084e-06/0.2734, allocations: 0 / 374.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.01247/0.2859, allocations: 3.543 MB / 378 MB, free: 17.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.138e-05/0.2859, allocations: 88.59 kB / 378.1 MB, free: 17.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00069/0.2866, allocations: 0.5411 MB / 378.6 MB, free: 16.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.18e-05/0.2867, allocations: 37.27 kB / 378.7 MB, free: 16.86 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001594/0.2869, allocations: 313.3 kB / 379 MB, free: 16.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001341/0.287, allocations: 208 kB / 379.2 MB, free: 16.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001947/0.2872, allocations: 111.7 kB / 379.3 MB, free: 16.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.496e-05/0.2873, allocations: 370.8 kB / 379.6 MB, free: 16.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000543/0.2879, allocations: 250.4 kB / 379.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005744/0.2884, allocations: 346.9 kB / 380.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001083/0.2895, allocations: 0.6007 MB / 380.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2895, allocations: 0.875 kB / 380.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001457/0.291, allocations: 0.7415 MB / 381.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.291, allocations: 6.156 kB / 381.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.291, allocations: 2.953 kB / 381.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001679/0.2912, allocations: 30.88 kB / 381.6 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007845/0.292, allocations: 166.6 kB / 381.8 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007875/0.2928, allocations: 1.432 MB / 383.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005744/0.2934, allocations: 38.72 kB / 383.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.633e-05/0.2935, allocations: 24.11 kB / 383.3 MB, free: 13.61 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.0002471/0.2937, allocations: 202.7 kB / 383.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/0.2938, allocations: 65.19 kB / 383.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001759/0.2956, allocations: 0.8397 MB / 384.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.2956, allocations: 7.812 kB / 384.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2956, allocations: 2.172 kB / 384.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.2956, allocations: 3.188 kB / 384.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003559/0.2992, allocations: 1.86 MB / 386.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.2992, allocations: 3.938 kB / 386.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005027/0.2997, allocations: 111 kB / 386.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002309/0.3021, allocations: 474.8 kB / 386.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.64e-05/0.3021, allocations: 14.02 kB / 386.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004625/0.3068, allocations: 3.154 MB / 390 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.3068, allocations: 1.156 kB / 390 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002892/0.3097, allocations: 1.368 MB / 391.3 MB, free: 8.945 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003329/0.31, allocations: 206.5 kB / 391.5 MB, free: 8.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.282e-05/0.3101, allocations: 16.41 kB / 391.6 MB, free: 8.758 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006112/0.3108, allocations: 43.52 kB / 391.6 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001685/0.3109, allocations: 59.58 kB / 391.7 MB, free: 8.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-05/0.311, allocations: 20.95 kB / 391.7 MB, free: 8.727 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004773/0.3115, allocations: 389.3 kB / 392.1 MB, free: 8.496 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3115, allocations: 0 / 392.1 MB, free: 8.496 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007966/0.3123, allocations: 189.3 kB / 392.2 MB, free: 8.473 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.0002756/0.3126, allocations: 155 kB / 392.4 MB, free: 8.359 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001698/0.3143, allocations: 0.7513 MB / 393.1 MB, free: 7.949 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.3143, allocations: 0 / 393.1 MB, free: 7.949 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008129/0.3151, allocations: 0.5235 MB / 393.7 MB, free: 7.621 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007187/0.3158, allocations: 98.33 kB / 393.8 MB, free: 7.566 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002477/0.3183, allocations: 1.479 MB / 395.2 MB, free: 6.625 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003164/0.3186, allocations: 0.8999 MB / 396.1 MB, free: 5.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000343/0.319, allocations: 76.53 kB / 396.2 MB, free: 5.801 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001681/0.3192, allocations: 55.22 kB / 396.3 MB, free: 5.781 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3192, allocations: 0 / 396.3 MB, free: 5.781 MB / 302.1 MB Notification: Performance of Templates: time 0.01597/0.3351, allocations: 10.25 MB / 406.5 MB, free: 13.32 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches