Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.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.CylinderLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quarterCylinder1.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quarterCylinder1.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001009/0.001009, allocations: 94.44 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001159/0.00116, allocations: 206.3 kB / 18.94 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.7 MB / 247.5 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000308/0.0003081, allocations: 8 kB / 308.4 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09471/0.09504, allocations: 51.52 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.005267/0.1004, allocations: 4.772 MB / 364.7 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002948/0.1033, allocations: 1.69 MB / 366.4 MB, free: 6.809 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000545/0.1039, allocations: 20 kB / 366.4 MB, free: 6.789 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008127/0.1047, allocations: 266.9 kB / 366.7 MB, free: 6.527 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001146/0.1059, allocations: 278.3 kB / 366.9 MB, free: 6.254 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001406/0.1073, allocations: 0.6 MB / 367.5 MB, free: 5.652 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001082/0.1084, allocations: 0.7771 MB / 368.3 MB, free: 4.875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002721/0.1112, allocations: 1.491 MB / 369.8 MB, free: 3.352 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004748/0.1116, allocations: 306.7 kB / 370.1 MB, free: 3.051 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005567/0.1122, allocations: 398.1 kB / 370.5 MB, free: 2.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001103/0.1123, allocations: 36 kB / 370.5 MB, free: 2.625 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006272/0.113, allocations: 227.8 kB / 370.8 MB, free: 2.402 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000127/0.1131, allocations: 131.3 kB / 370.9 MB, free: 2.273 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004392/0.1136, allocations: 395.7 kB / 371.3 MB, free: 1.879 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00098/0.1145, allocations: 0.9116 MB / 372.2 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1146, allocations: 0 / 372.2 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1146, allocations: 0 / 372.2 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.628e-05/0.1146, allocations: 0 / 372.2 MB, free: 0.9648 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.1668/0.2814, allocations: 1.292 MB / 373.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.2814, allocations: 9.062 kB / 373.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002073/0.2835, allocations: 258.7 kB / 373.7 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002571/0.2838, allocations: 263.3 kB / 374 MB, free: 18.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001325/0.2839, allocations: 72.16 kB / 374.1 MB, free: 18.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003129/0.2843, allocations: 98.2 kB / 374.2 MB, free: 18.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002162/0.2864, allocations: 0.9353 MB / 375.1 MB, free: 18.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.525e-05/0.2865, allocations: 12.72 kB / 375.1 MB, free: 18.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001088/0.2866, allocations: 43.12 kB / 375.1 MB, free: 18.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.905e-05/0.2866, allocations: 27.03 kB / 375.2 MB, free: 18.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001691/0.2883, allocations: 0.777 MB / 375.9 MB, free: 18.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005352/0.2937, allocations: 3.638 MB / 379.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001854/0.2956, allocations: 1.248 MB / 380.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005507/0.2961, allocations: 375.3 kB / 381.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001356/0.2963, allocations: 185.6 kB / 381.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.2963, allocations: 46.84 kB / 381.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of pre-optimization done (n=87): time 2.846e-06/0.2963, allocations: 0 / 381.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=87): time 0.002129/0.2985, allocations: 1.307 MB / 382.7 MB, free: 13.92 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.315e-05/0.2985, allocations: 91.22 kB / 382.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004552/0.299, allocations: 364.3 kB / 383.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.815e-05/0.299, allocations: 41.7 kB / 383.2 MB, free: 13.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002247/0.2993, allocations: 380.6 kB / 383.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002344/0.2995, allocations: 300.1 kB / 383.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/0.2996, allocations: 86.94 kB / 384 MB, free: 13 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.2998, allocations: 358.8 kB / 384.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000467/0.3002, allocations: 266 kB / 384.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005662/0.3008, allocations: 476.1 kB / 385 MB, free: 12.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001043/0.3019, allocations: 0.7646 MB / 385.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.257e-06/0.3019, allocations: 5.031 kB / 385.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001755/0.3036, allocations: 0.9794 MB / 386.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/0.3037, allocations: 6.562 kB / 386.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.751e-05/0.3037, allocations: 6.391 kB / 386.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004052/0.3041, allocations: 130.3 kB / 386.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007961/0.3049, allocations: 198.7 kB / 387.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003041/0.308, allocations: 5.578 MB / 392.7 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006414/0.3086, allocations: 100.1 kB / 392.8 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.2e-05/0.3087, allocations: 40.02 kB / 392.8 MB, free: 5.543 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003928/0.3091, allocations: 236.2 kB / 393.1 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.3093, allocations: 58.11 kB / 393.1 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001508/0.3108, allocations: 0.8431 MB / 394 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.3108, allocations: 12.33 kB / 394 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/0.3108, allocations: 7.562 kB / 394 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.3109, allocations: 8.062 kB / 394 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003069/0.3139, allocations: 2.091 MB / 396.1 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-06/0.314, allocations: 2.281 kB / 396.1 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005812/0.3145, allocations: 134.8 kB / 396.2 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003137/0.3149, allocations: 115.2 kB / 396.3 MB, free: 3.418 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.197e-05/0.3149, allocations: 17.7 kB / 396.4 MB, free: 3.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003185/0.3181, allocations: 5.301 MB / 401.7 MB, free: 14.06 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/0.3182, allocations: 6.844 kB / 401.7 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002001/0.3202, allocations: 1.268 MB / 402.9 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001997/0.3204, allocations: 144.1 kB / 403.1 MB, free: 13.16 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.3205, allocations: 27.53 kB / 403.1 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004185/0.3209, allocations: 20.95 kB / 403.1 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/0.3211, allocations: 62.19 kB / 403.2 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.341e-05/0.3211, allocations: 24.52 kB / 403.2 MB, free: 13.11 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003012/0.3214, allocations: 257.6 kB / 403.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3214, allocations: 4.875 kB / 403.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001097/0.3225, allocations: 266.4 kB / 403.7 MB, free: 12.9 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 (78): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003016/0.3229, allocations: 159.3 kB / 403.9 MB, free: 12.79 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001858/0.3247, allocations: 1.17 MB / 405 MB, free: 12.07 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.3247, allocations: 1.188 kB / 405 MB, free: 12.07 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009314/0.3257, allocations: 0.7973 MB / 405.8 MB, free: 11.48 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006999/0.3264, allocations: 62.17 kB / 405.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003036/0.3294, allocations: 1.825 MB / 407.7 MB, free: 10.23 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005115/0.33, allocations: 0.9134 MB / 408.6 MB, free: 9.438 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002301/0.3302, allocations: 62.25 kB / 408.7 MB, free: 9.422 MB / 318.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3302, allocations: 0 / 408.7 MB, free: 9.422 MB / 318.1 MB Notification: Performance of Templates: time 0.0236/0.3538, allocations: 20.85 MB / 429.6 MB, free: 5.73 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/CylinderLeakage/CylinderLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches