Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007393/0.0007393, allocations: 96.03 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.001012/0.001012, allocations: 207.7 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.7 MB / 247.5 MB, free: 11.11 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002077/0.0002077, allocations: 4 kB / 308.4 MB, free: 0.7617 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09167/0.09189, allocations: 51.53 MB / 359.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.004961/0.0969, allocations: 3.147 MB / 363.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002011/0.09894, allocations: 0.9465 MB / 364 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002135/0.09917, allocations: 11.94 kB / 364 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002791/0.09946, allocations: 79.45 kB / 364.1 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004937/0.09997, allocations: 131.1 kB / 364.2 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004788/0.1005, allocations: 143.9 kB / 364.4 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008062/0.1013, allocations: 0.6148 MB / 365 MB, free: 8.141 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003545/0.1017, allocations: 154.3 kB / 365.1 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003244/0.102, allocations: 211 kB / 365.3 MB, free: 7.777 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003819/0.1024, allocations: 246.7 kB / 365.6 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.831e-05/0.1025, allocations: 28 kB / 365.6 MB, free: 7.508 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.748e-05/0.1026, allocations: 32 kB / 365.6 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.1027, allocations: 95.58 kB / 365.7 MB, free: 7.383 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003262/0.1031, allocations: 288.1 kB / 366 MB, free: 7.094 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005427/0.1036, allocations: 470.8 kB / 366.5 MB, free: 6.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.1036, allocations: 0 / 366.5 MB, free: 6.633 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1036, allocations: 4 kB / 366.5 MB, free: 6.629 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.213e-06/0.1036, allocations: 0 / 366.5 MB, free: 6.629 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001818/0.1055, allocations: 0.7914 MB / 367.3 MB, free: 5.785 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.1055, allocations: 8.031 kB / 367.3 MB, free: 5.777 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001391/0.1057, allocations: 60.19 kB / 367.3 MB, free: 5.719 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005735/0.1063, allocations: 351.7 kB / 367.7 MB, free: 5.336 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.252e-05/0.1063, allocations: 37.69 kB / 367.7 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/0.1065, allocations: 52.38 kB / 367.8 MB, free: 5.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/0.1078, allocations: 454.3 kB / 368.2 MB, free: 4.797 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.1078, allocations: 0 / 368.2 MB, free: 4.797 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.28e-05/0.1079, allocations: 20 kB / 368.2 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.808e-05/0.1079, allocations: 12 kB / 368.2 MB, free: 4.766 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001332/0.1092, allocations: 413 kB / 368.6 MB, free: 4.363 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003652/0.1129, allocations: 1.593 MB / 370.2 MB, free: 2.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.114, allocations: 417.4 kB / 370.6 MB, free: 2.223 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005997/0.1146, allocations: 187.7 kB / 370.8 MB, free: 2.039 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.302e-05/0.1146, allocations: 12.31 kB / 370.8 MB, free: 2.027 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.89e-05/0.1147, allocations: 34.83 kB / 370.9 MB, free: 1.984 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 2.424e-06/0.1147, allocations: 0 / 370.9 MB, free: 1.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.004872/0.1196, allocations: 1.282 MB / 372.2 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.61e-05/0.1196, allocations: 55.97 kB / 372.2 MB, free: 0.625 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006795/0.1203, allocations: 413.5 kB / 372.6 MB, free: 216 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.615e-05/0.1204, allocations: 33.7 kB / 372.6 MB, free: 176 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2009/0.3213, allocations: 305 kB / 372.9 MB, free: 19.13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002697/0.3216, allocations: 190.3 kB / 373.1 MB, free: 19.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001655/0.3218, allocations: 55.88 kB / 373.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.3219, allocations: 358.2 kB / 373.5 MB, free: 18.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006745/0.3226, allocations: 189.3 kB / 373.7 MB, free: 18.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006445/0.3233, allocations: 308.3 kB / 374 MB, free: 18.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/0.3244, allocations: 0.5032 MB / 374.5 MB, free: 18.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.3244, allocations: 2.156 kB / 374.5 MB, free: 18.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001914/0.3263, allocations: 0.7671 MB / 375.3 MB, free: 18.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.936e-05/0.3264, allocations: 8.141 kB / 375.3 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.655e-05/0.3264, allocations: 2.469 kB / 375.3 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007175/0.3271, allocations: 185.7 kB / 375.5 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005427/0.3277, allocations: 117 kB / 375.6 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003936/0.3316, allocations: 3.878 MB / 379.5 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004827/0.3321, allocations: 40.5 kB / 379.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.813e-05/0.3322, allocations: 22.62 kB / 379.5 MB, free: 15.22 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000246/0.3324, allocations: 184 kB / 379.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.069e-05/0.3325, allocations: 46.81 kB / 379.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000134/0.3327, allocations: 64.33 kB / 379.8 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.3327, allocations: 5.5 kB / 379.8 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.07e-05/0.3327, allocations: 4.734 kB / 379.8 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.3327, allocations: 7.609 kB / 379.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002524/0.3353, allocations: 1.326 MB / 381.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.3353, allocations: 5.391 kB / 381.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003196/0.3356, allocations: 80.94 kB / 381.3 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004363/0.3361, allocations: 158.3 kB / 381.4 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.336e-05/0.3361, allocations: 12.31 kB / 381.4 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003021/0.3391, allocations: 3.703 MB / 385.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.3391, allocations: 8.625 kB / 385.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001271/0.3404, allocations: 0.7242 MB / 385.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/0.3405, allocations: 122.4 kB / 386 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.487e-05/0.3406, allocations: 8.531 kB / 386 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003149/0.3409, allocations: 27.98 kB / 386 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.3411, allocations: 54.09 kB / 386.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.639e-05/0.3411, allocations: 15.23 kB / 386.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003273/0.3414, allocations: 283 kB / 386.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.3414, allocations: 384 / 386.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007539/0.3422, allocations: 149.5 kB / 386.5 MB, free: 10.23 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001461/0.3424, allocations: 115.5 kB / 386.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001578/0.3439, allocations: 0.8029 MB / 387.4 MB, free: 9.699 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.344, allocations: 8 kB / 387.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008231/0.3448, allocations: 0.532 MB / 388 MB, free: 9.348 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005232/0.3453, allocations: 42.61 kB / 388 MB, free: 9.324 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002058/0.3474, allocations: 1.254 MB / 389.3 MB, free: 8.496 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004151/0.3478, allocations: 0.8611 MB / 390.1 MB, free: 7.789 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.348, allocations: 33.94 kB / 390.1 MB, free: 7.781 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.348, allocations: 0 / 390.1 MB, free: 7.781 MB / 302.1 MB Notification: Performance of Templates: time 0.01569/0.3637, allocations: 9.744 MB / 399.9 MB, free: 3.805 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches