Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008201/0.0008203, allocations: 89.58 kB / 16.32 MB, free: 5.621 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.0008924/0.0008925, allocations: 181.1 kB / 17.21 MB, free: 5.539 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.375/1.375, allocations: 223.3 MB / 241.2 MB, free: 336 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002683/0.0002683, allocations: 5.344 kB / 300.8 MB, free: 6.438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1004, allocations: 50.42 MB / 351.3 MB, free: 4.004 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.002731/0.1032, allocations: 2.363 MB / 353.6 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00161/0.1048, allocations: 1.048 MB / 354.7 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001674/0.105, allocations: 8 kB / 354.7 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000336/0.1054, allocations: 95.52 kB / 354.8 MB, free: 480 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003281/0.1057, allocations: 103.3 kB / 354.9 MB, free: 376 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001152/0.1069, allocations: 0.5539 MB / 355.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004065/0.1073, allocations: 266.7 kB / 355.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001039/0.1083, allocations: 0.5297 MB / 356.2 MB, free: 15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001797/0.1085, allocations: 107.6 kB / 356.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002009/0.1087, allocations: 139.5 kB / 356.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.158e-05/0.1088, allocations: 16 kB / 356.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003348/0.1091, allocations: 151.8 kB / 356.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.057e-05/0.1092, allocations: 43.83 kB / 356.7 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.572e-05/0.1093, allocations: 77.52 kB / 356.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004291/0.1097, allocations: 379.3 kB / 357.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1097, allocations: 0 / 357.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.387e-06/0.1097, allocations: 0 / 357.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.1097, allocations: 3.938 kB / 357.1 MB, free: 14.09 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.001512/0.1112, allocations: 0.6756 MB / 357.8 MB, free: 13.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.1113, allocations: 11.97 kB / 357.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008179/0.1121, allocations: 123.5 kB / 357.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003184/0.1124, allocations: 254.6 kB / 358.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.531e-05/0.1125, allocations: 24.66 kB / 358.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.943e-05/0.1125, allocations: 32 kB / 358.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005865/0.1131, allocations: 329.1 kB / 358.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.1132, allocations: 0 / 358.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.975e-05/0.1132, allocations: 15.94 kB / 358.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.1132, allocations: 11.95 kB / 358.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004427/0.1137, allocations: 246.4 kB / 358.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001947/0.1156, allocations: 1.443 MB / 360.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007204/0.1164, allocations: 0.7113 MB / 361 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002284/0.1166, allocations: 100.8 kB / 361.1 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001247/0.1167, allocations: 93.08 kB / 361.2 MB, free: 9.676 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.177e-05/0.1168, allocations: 34.56 kB / 361.2 MB, free: 9.633 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.274e-06/0.1168, allocations: 0 / 361.2 MB, free: 9.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001235/0.118, allocations: 499.3 kB / 361.7 MB, free: 9.117 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.026e-05/0.1181, allocations: 55.27 kB / 361.7 MB, free: 9.051 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001815/0.1183, allocations: 180.2 kB / 361.9 MB, free: 8.859 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.1183, allocations: 29.7 kB / 361.9 MB, free: 8.824 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.1184, allocations: 179.9 kB / 362.1 MB, free: 8.641 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.591e-05/0.1185, allocations: 74.91 kB / 362.2 MB, free: 8.566 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.447e-05/0.1185, allocations: 8 kB / 362.2 MB, free: 8.559 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.1187, allocations: 322.8 kB / 362.5 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001265/0.1188, allocations: 72.53 kB / 362.6 MB, free: 8.164 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001692/0.119, allocations: 129 kB / 362.7 MB, free: 8.016 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001586/0.1191, allocations: 89.06 kB / 362.8 MB, free: 7.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1192, allocations: 4 kB / 362.8 MB, free: 7.926 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005621/0.1197, allocations: 315.8 kB / 363.1 MB, free: 7.609 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.1198, allocations: 12.2 kB / 363.1 MB, free: 7.598 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.934e-06/0.1198, allocations: 4 kB / 363.1 MB, free: 7.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003118/0.1201, allocations: 72.81 kB / 363.2 MB, free: 7.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002334/0.1203, allocations: 43.92 kB / 363.2 MB, free: 7.477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001992/0.1223, allocations: 1.842 MB / 365.1 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001352/0.1225, allocations: 27.81 kB / 365.1 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.141e-05/0.1225, allocations: 15.95 kB / 365.1 MB, free: 5.457 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001496/0.1227, allocations: 145.7 kB / 365.3 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.39e-05/0.1227, allocations: 19.75 kB / 365.3 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005527/0.1233, allocations: 282.4 kB / 365.6 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.1233, allocations: 0 / 365.6 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.1233, allocations: 4 kB / 365.6 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.1233, allocations: 0 / 365.6 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000982/0.1243, allocations: 0.7019 MB / 366.3 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.1243, allocations: 0 / 366.3 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001177/0.1244, allocations: 23.98 kB / 366.3 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002253/0.1247, allocations: 68.81 kB / 366.4 MB, free: 4.148 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.775e-05/0.1247, allocations: 8 kB / 366.4 MB, free: 4.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001821/0.1265, allocations: 1.835 MB / 368.2 MB, free: 2.168 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1265, allocations: 0 / 368.2 MB, free: 2.168 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006421/0.1272, allocations: 439.5 kB / 368.6 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.828e-05/0.1273, allocations: 112.9 kB / 368.7 MB, free: 1.594 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.046e-05/0.1273, allocations: 11.95 kB / 368.7 MB, free: 1.582 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001302/0.1275, allocations: 8.125 kB / 368.8 MB, free: 1.574 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.401e-05/0.1275, allocations: 19.97 kB / 368.8 MB, free: 1.555 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.265e-05/0.1275, allocations: 4 kB / 368.8 MB, free: 1.551 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001185/0.1277, allocations: 132.4 kB / 368.9 MB, free: 1.422 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1277, allocations: 0 / 368.9 MB, free: 1.422 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004981/0.1282, allocations: 91.69 kB / 369 MB, free: 1.332 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002163/0.1284, allocations: 127.2 kB / 369.1 MB, free: 1.199 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006277/0.129, allocations: 342.5 kB / 369.5 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1291, allocations: 448 / 369.5 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003719/0.1294, allocations: 250.4 kB / 369.7 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003969/0.1298, allocations: 23.92 kB / 369.7 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1555/0.2853, allocations: 0.7034 MB / 370.4 MB, free: 24.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.2856, allocations: 0.7533 MB / 371.2 MB, free: 23.91 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001601/0.2858, allocations: 23.8 kB / 371.2 MB, free: 23.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.329e-05/0.2859, allocations: 16.44 kB / 371.2 MB, free: 23.9 MB / 302.1 MB Notification: Performance of SimCode: time 1.092e-06/0.2859, allocations: 0.7812 kB / 371.2 MB, free: 23.9 MB / 302.1 MB Notification: Performance of Templates: time 0.007079/0.293, allocations: 2.415 MB / 373.6 MB, free: 23.8 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches