Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0015/0.0015, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001764/0.001764, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001276, allocations: 59.42 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1026, allocations: 50.53 MB / 358.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004609/0.1073, allocations: 2.847 MB / 361.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002082/0.1094, allocations: 1.211 MB / 363 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002885/0.1097, allocations: 8 kB / 363 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001608/0.1113, allocations: 0.6139 MB / 363.6 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004206/0.1118, allocations: 135 kB / 363.7 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001325/0.1131, allocations: 0.6537 MB / 364.4 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004047/0.1135, allocations: 298.6 kB / 364.7 MB, free: 7.531 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004486/0.114, allocations: 282.7 kB / 364.9 MB, free: 7.258 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001787/0.1142, allocations: 131.5 kB / 365.1 MB, free: 7.129 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002101/0.1144, allocations: 171.3 kB / 365.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.506e-05/0.1145, allocations: 28 kB / 365.3 MB, free: 6.934 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003364/0.1148, allocations: 187.8 kB / 365.5 MB, free: 6.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.649e-05/0.1149, allocations: 55.83 kB / 365.5 MB, free: 6.695 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001346/0.115, allocations: 151.3 kB / 365.7 MB, free: 6.547 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005693/0.1156, allocations: 0.4984 MB / 366.2 MB, free: 6.047 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.1156, allocations: 0 / 366.2 MB, free: 6.047 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1156, allocations: 0 / 366.2 MB, free: 6.047 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.1156, allocations: 0 / 366.2 MB, free: 6.047 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.00158/0.1172, allocations: 0.7216 MB / 366.9 MB, free: 5.273 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.1172, allocations: 8.031 kB / 366.9 MB, free: 5.266 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008014/0.118, allocations: 120.5 kB / 367 MB, free: 5.148 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003783/0.1184, allocations: 264.5 kB / 367.3 MB, free: 4.852 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.773e-05/0.1185, allocations: 25.03 kB / 367.3 MB, free: 4.828 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.935e-05/0.1185, allocations: 40.36 kB / 367.3 MB, free: 4.789 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005187/0.1191, allocations: 329 kB / 367.6 MB, free: 4.461 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.1191, allocations: 0 / 367.6 MB, free: 4.461 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.066e-05/0.1191, allocations: 16 kB / 367.7 MB, free: 4.445 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.1191, allocations: 11.94 kB / 367.7 MB, free: 4.434 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003911/0.1195, allocations: 234.5 kB / 367.9 MB, free: 4.203 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001871/0.1214, allocations: 1.435 MB / 369.3 MB, free: 2.625 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000653/0.1221, allocations: 0.7033 MB / 370 MB, free: 1.805 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001597/0.1222, allocations: 103.8 kB / 370.1 MB, free: 1.703 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000179/0.1224, allocations: 178.1 kB / 370.3 MB, free: 1.492 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.9e-05/0.1225, allocations: 30.56 kB / 370.3 MB, free: 1.453 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.283e-06/0.1225, allocations: 0 / 370.3 MB, free: 1.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001142/0.1236, allocations: 499.2 kB / 370.8 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.552e-05/0.1237, allocations: 55.41 kB / 370.9 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001586/0.1238, allocations: 180.9 kB / 371.1 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/0.1239, allocations: 29.7 kB / 371.1 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.779e-05/0.124, allocations: 172 kB / 371.3 MB, free: 480 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.274e-05/0.124, allocations: 90.73 kB / 371.4 MB, free: 388 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.475e-05/0.1241, allocations: 49.98 kB / 371.4 MB, free: 332 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.1468/0.271, allocations: 326.8 kB / 371.7 MB, free: 20.65 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001762/0.2712, allocations: 62.5 kB / 371.8 MB, free: 20.65 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000157/0.2713, allocations: 132.4 kB / 371.9 MB, free: 20.58 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002626/0.2716, allocations: 212.5 kB / 372.1 MB, free: 20.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.2716, allocations: 1.031 kB / 372.1 MB, free: 20.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006032/0.2722, allocations: 330.7 kB / 372.4 MB, free: 20.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.2723, allocations: 9.812 kB / 372.5 MB, free: 20.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.2723, allocations: 1.844 kB / 372.5 MB, free: 20.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003262/0.2726, allocations: 77.7 kB / 372.5 MB, free: 20.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001576/0.2728, allocations: 46.16 kB / 372.6 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001588/0.2744, allocations: 2.029 MB / 374.6 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/0.2745, allocations: 29.52 kB / 374.6 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.825e-05/0.2746, allocations: 13.38 kB / 374.6 MB, free: 18.6 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001175/0.2747, allocations: 143.1 kB / 374.8 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.313e-05/0.2747, allocations: 17.56 kB / 374.8 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005174/0.2752, allocations: 285.2 kB / 375.1 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.2753, allocations: 2.391 kB / 375.1 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.2753, allocations: 3.188 kB / 375.1 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.2753, allocations: 6.172 kB / 375.1 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008345/0.2761, allocations: 0.6895 MB / 375.8 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.2761, allocations: 4.688 kB / 375.8 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001179/0.2763, allocations: 29.8 kB / 375.8 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002248/0.2765, allocations: 81.58 kB / 375.9 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.2765, allocations: 7.25 kB / 375.9 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001478/0.278, allocations: 2.022 MB / 377.9 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.278, allocations: 4.047 kB / 377.9 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005765/0.2786, allocations: 447.1 kB / 378.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.906e-05/0.2787, allocations: 110.1 kB / 378.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.426e-05/0.2787, allocations: 10.44 kB / 378.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001148/0.2788, allocations: 6.75 kB / 378.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.683e-05/0.2789, allocations: 14.3 kB / 378.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.2789, allocations: 8.828 kB / 378.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.09e-05/0.279, allocations: 123.2 kB / 378.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.279, allocations: 0 / 378.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004957/0.2795, allocations: 98.86 kB / 378.7 MB, free: 15.49 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001872/0.2797, allocations: 121.9 kB / 378.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005238/0.2802, allocations: 351.8 kB / 379.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2802, allocations: 3.906 kB / 379.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002841/0.2805, allocations: 245.2 kB / 379.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.2808, allocations: 24.38 kB / 379.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008658/0.2817, allocations: 0.5637 MB / 380 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001751/0.2819, allocations: 0.7568 MB / 380.8 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.748e-05/0.282, allocations: 22.09 kB / 380.8 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.404e-05/0.282, allocations: 16.75 kB / 380.8 MB, free: 13.99 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.282, allocations: 0 / 380.8 MB, free: 13.99 MB / 302.1 MB Notification: Performance of Templates: time 0.006246/0.2883, allocations: 2.655 MB / 383.5 MB, free: 13.78 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches