Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.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.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009782/0.0009783, allocations: 93.47 kB / 18 MB, free: 5.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001072/0.001072, allocations: 206 kB / 18.93 MB, free: 4.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.7 MB / 247.5 MB, free: 11.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003054/0.0003055, allocations: 4 kB / 308.4 MB, free: 0.7617 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0887/0.08902, allocations: 51.53 MB / 359.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.006837/0.0959, allocations: 6.145 MB / 366.1 MB, free: 7.066 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00452/0.1005, allocations: 2.402 MB / 368.5 MB, free: 4.652 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000818/0.1013, allocations: 24 kB / 368.5 MB, free: 4.629 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001125/0.1025, allocations: 370.5 kB / 368.9 MB, free: 4.266 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001907/0.1044, allocations: 489.4 kB / 369.3 MB, free: 3.785 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002741/0.1071, allocations: 1.258 MB / 370.6 MB, free: 2.527 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001685/0.1088, allocations: 1.058 MB / 371.6 MB, free: 1.461 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1829/0.2917, allocations: 1.735 MB / 373.4 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00112/0.2929, allocations: 418 kB / 373.8 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001125/0.294, allocations: 0.5472 MB / 374.3 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003524/0.2944, allocations: 50.22 kB / 374.4 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001395/0.2958, allocations: 397.5 kB / 374.8 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002183/0.2961, allocations: 190.2 kB / 375 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006923/0.2968, allocations: 0.5203 MB / 375.5 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002024/0.2988, allocations: 1.245 MB / 376.7 MB, free: 8.703 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.2988, allocations: 0.8125 kB / 376.7 MB, free: 8.703 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2988, allocations: 1.406 kB / 376.7 MB, free: 8.703 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.082e-05/0.2989, allocations: 3.094 kB / 376.7 MB, free: 8.703 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: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.006446/0.3053, allocations: 1.847 MB / 378.6 MB, free: 7.996 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.3054, allocations: 13 kB / 378.6 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003846/0.3092, allocations: 0.514 MB / 379.1 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003665/0.3096, allocations: 311.3 kB / 379.4 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/0.3097, allocations: 97.23 kB / 379.5 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003468/0.3101, allocations: 129.9 kB / 379.6 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002641/0.3127, allocations: 1.311 MB / 380.9 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.891e-05/0.3128, allocations: 6.391 kB / 380.9 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001185/0.3129, allocations: 52.25 kB / 381 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.096e-05/0.313, allocations: 31.22 kB / 381 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002564/0.3155, allocations: 1.228 MB / 382.3 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006385/0.3219, allocations: 4.316 MB / 386.6 MB, free: 5.484 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002123/0.3241, allocations: 2.447 MB / 389 MB, free: 3.461 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000909/0.325, allocations: 0.5127 MB / 389.5 MB, free: 3.266 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001636/0.3252, allocations: 191.9 kB / 389.7 MB, free: 3.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.3252, allocations: 48.94 kB / 389.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=122): time 4.549e-06/0.3252, allocations: 3.984 kB / 389.8 MB, free: 3.016 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.01036/0.3356, allocations: 4.045 MB / 393.8 MB, free: 1.211 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.3357, allocations: 89.52 kB / 393.9 MB, free: 1.113 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004272/0.3361, allocations: 397.2 kB / 394.3 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.327e-05/0.3362, allocations: 45.36 kB / 394.3 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001727/0.3364, allocations: 453.3 kB / 394.8 MB, free: 424 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002193/0.3366, allocations: 421.3 kB / 395.2 MB, free: 56 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000193/0.3368, allocations: 107.3 kB / 395.3 MB, free: 0 / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.337, allocations: 377.6 kB / 395.7 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001066/0.338, allocations: 461.2 kB / 396.1 MB, free: 15.43 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001241/0.3393, allocations: 0.7145 MB / 396.8 MB, free: 14.9 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00227/0.3416, allocations: 1.229 MB / 398.1 MB, free: 14.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.3416, allocations: 0 / 398.1 MB, free: 14.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002909/0.3445, allocations: 1.511 MB / 399.6 MB, free: 13.46 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/0.3446, allocations: 16.8 kB / 399.6 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.411e-05/0.3446, allocations: 7.469 kB / 399.6 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000539/0.3451, allocations: 201.2 kB / 399.8 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/0.3463, allocations: 291.2 kB / 400.1 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003818/0.3501, allocations: 3.982 MB / 404.1 MB, free: 9.754 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001104/0.3513, allocations: 87.34 kB / 404.1 MB, free: 9.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.3514, allocations: 54.73 kB / 404.2 MB, free: 9.699 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (146): * Single equations (assignments): 144 * 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.0005463/0.3519, allocations: 274.2 kB / 404.5 MB, free: 9.488 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001494/0.3521, allocations: 68.34 kB / 404.5 MB, free: 9.453 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003104/0.3552, allocations: 1.39 MB / 405.9 MB, free: 8.254 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.399e-05/0.3552, allocations: 12 kB / 405.9 MB, free: 8.242 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.3553, allocations: 8 kB / 405.9 MB, free: 8.234 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.339e-05/0.3553, allocations: 7.969 kB / 405.9 MB, free: 8.227 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004783/0.3601, allocations: 2.663 MB / 408.6 MB, free: 5.516 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-05/0.3601, allocations: 4.875 kB / 408.6 MB, free: 5.512 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009822/0.3611, allocations: 222.6 kB / 408.8 MB, free: 5.305 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004398/0.3615, allocations: 173.5 kB / 409 MB, free: 5.129 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.515e-05/0.3616, allocations: 31.64 kB / 409 MB, free: 5.102 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003548/0.3652, allocations: 3.773 MB / 412.8 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.3652, allocations: 8 kB / 412.8 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003938/0.3691, allocations: 1.933 MB / 414.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004153/0.3696, allocations: 228.2 kB / 415 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/0.3697, allocations: 27.98 kB / 415 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007253/0.3704, allocations: 67.95 kB / 415.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001884/0.3706, allocations: 92.41 kB / 415.2 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.494e-05/0.3707, allocations: 36.36 kB / 415.2 MB, free: 14.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000314/0.371, allocations: 271.2 kB / 415.5 MB, free: 14.4 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.371, allocations: 0 / 415.5 MB, free: 14.4 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001196/0.3722, allocations: 300 kB / 415.7 MB, free: 14.11 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (currentSource.pin_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 (106): * Single equations (assignments): 104 * 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.0003246/0.3725, allocations: 191 kB / 415.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002948/0.3755, allocations: 1.502 MB / 417.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.3755, allocations: 0 / 417.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001497/0.377, allocations: 0.8857 MB / 418.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006344/0.3777, allocations: 69.56 kB / 418.4 MB, free: 11.47 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004497/0.3822, allocations: 2.526 MB / 420.9 MB, free: 8.91 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006728/0.3829, allocations: 1.009 MB / 421.9 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003867/0.3833, allocations: 79.41 kB / 422 MB, free: 7.797 MB / 334.1 MB Notification: Performance of SimCode: time 2.425e-06/0.3833, allocations: 0 / 422 MB, free: 7.797 MB / 334.1 MB Notification: Performance of Templates: time 0.02409/0.4074, allocations: 19.38 MB / 441.4 MB, free: 4.449 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches