Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.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_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 107.1 kB / 17.17 MB, free: 6.32 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.001112/0.001112, allocations: 194.9 kB / 18.08 MB, free: 5.41 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.318/1.318, allocations: 222.9 MB / 241.8 MB, free: 13.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001762/0.001762, allocations: 50.81 kB / 300.6 MB, free: 6.086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1018, allocations: 49.45 MB / 350.1 MB, free: 4.629 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.008189/0.1101, allocations: 6.647 MB / 356.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004527/0.1146, allocations: 2.378 MB / 359.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009859/0.1156, allocations: 24 kB / 359.1 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004204/0.1199, allocations: 1.762 MB / 360.9 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002141/0.122, allocations: 0.6375 MB / 361.5 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002672/0.1247, allocations: 1.138 MB / 362.7 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001895/0.1266, allocations: 1.066 MB / 363.7 MB, free: 6.922 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001766/0.1284, allocations: 0.8618 MB / 364.6 MB, free: 6.039 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008027/0.1292, allocations: 450.2 kB / 365 MB, free: 5.598 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000946/0.1302, allocations: 0.6108 MB / 365.6 MB, free: 4.984 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002781/0.1305, allocations: 80 kB / 365.7 MB, free: 4.906 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001165/0.1316, allocations: 399.6 kB / 366.1 MB, free: 4.516 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002599/0.1319, allocations: 223.1 kB / 366.3 MB, free: 4.297 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007139/0.1326, allocations: 0.5323 MB / 366.9 MB, free: 3.762 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001657/0.1343, allocations: 1.266 MB / 368.1 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.1343, allocations: 0 / 368.1 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1343, allocations: 0 / 368.1 MB, free: 2.492 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.888e-05/0.1344, allocations: 0 / 368.1 MB, free: 2.492 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.007302/0.1417, allocations: 2.018 MB / 370.1 MB, free: 432 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.1418, allocations: 12.03 kB / 370.2 MB, free: 420 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1806/0.3224, allocations: 0.497 MB / 370.6 MB, free: 24.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004025/0.3229, allocations: 310.2 kB / 371 MB, free: 24.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000208/0.3231, allocations: 100.4 kB / 371.1 MB, free: 24.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004269/0.3235, allocations: 125 kB / 371.2 MB, free: 24.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00352/0.3271, allocations: 1.299 MB / 372.5 MB, free: 24.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.903e-05/0.3271, allocations: 5.875 kB / 372.5 MB, free: 24.1 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001567/0.3273, allocations: 61.97 kB / 372.5 MB, free: 24.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.681e-05/0.3273, allocations: 33.72 kB / 372.6 MB, free: 24.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002902/0.3302, allocations: 1.195 MB / 373.8 MB, free: 23.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007026/0.3373, allocations: 4.22 MB / 378 MB, free: 21.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002314/0.3396, allocations: 2.44 MB / 380.4 MB, free: 19.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009692/0.3406, allocations: 0.5017 MB / 380.9 MB, free: 18.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001235/0.3408, allocations: 116.9 kB / 381 MB, free: 18.83 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.208e-05/0.3408, allocations: 44.94 kB / 381.1 MB, free: 18.78 MB / 302.1 MB Notification: Performance of pre-optimization done (n=122): time 4.117e-06/0.3408, allocations: 0 / 381.1 MB, free: 18.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.01122/0.3521, allocations: 3.786 MB / 384.9 MB, free: 17.17 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.3521, allocations: 91.22 kB / 385 MB, free: 17.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005493/0.3527, allocations: 395 kB / 385.3 MB, free: 16.87 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.894e-05/0.3528, allocations: 45.8 kB / 385.4 MB, free: 16.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002357/0.353, allocations: 454 kB / 385.8 MB, free: 16.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002772/0.3533, allocations: 420.5 kB / 386.2 MB, free: 16.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003471/0.3537, allocations: 232.9 kB / 386.5 MB, free: 16.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.784e-05/0.3538, allocations: 376.9 kB / 386.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001121/0.3549, allocations: 435.6 kB / 387.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001177/0.3561, allocations: 0.6912 MB / 388 MB, free: 15.1 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002251/0.3583, allocations: 1.185 MB / 389.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-05/0.3584, allocations: 5.312 kB / 389.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003009/0.3614, allocations: 1.48 MB / 390.6 MB, free: 13.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/0.3614, allocations: 14.64 kB / 390.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.3614, allocations: 3.938 kB / 390.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004895/0.3619, allocations: 201 kB / 390.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/0.3631, allocations: 286.9 kB / 391.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003247/0.3664, allocations: 3.964 MB / 395.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009552/0.3674, allocations: 75.5 kB / 395.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/0.3675, allocations: 60.19 kB / 395.2 MB, free: 10.16 MB / 302.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.000434/0.3679, allocations: 271.6 kB / 395.5 MB, free: 9.934 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001621/0.3681, allocations: 67.47 kB / 395.5 MB, free: 9.898 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002891/0.371, allocations: 1.356 MB / 396.9 MB, free: 9.133 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.315e-06/0.371, allocations: 11.38 kB / 396.9 MB, free: 9.133 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.371, allocations: 6.312 kB / 396.9 MB, free: 9.133 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.371, allocations: 3.984 kB / 396.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004147/0.3752, allocations: 2.63 MB / 399.6 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.3752, allocations: 3.938 kB / 399.6 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009073/0.3761, allocations: 218 kB / 399.8 MB, free: 7.305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003837/0.3765, allocations: 162 kB / 399.9 MB, free: 7.223 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.777e-05/0.3766, allocations: 31.89 kB / 400 MB, free: 7.203 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002593/0.3792, allocations: 3.775 MB / 403.7 MB, free: 3.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3792, allocations: 4.641 kB / 403.7 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003368/0.3826, allocations: 1.878 MB / 405.6 MB, free: 1.512 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003071/0.3829, allocations: 224.2 kB / 405.8 MB, free: 1.273 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001157/0.383, allocations: 24.88 kB / 405.9 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006909/0.3837, allocations: 68 kB / 405.9 MB, free: 1.184 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/0.3839, allocations: 88.92 kB / 406 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.577e-05/0.384, allocations: 39.92 kB / 406.1 MB, free: 1.059 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002223/0.3842, allocations: 271.2 kB / 406.3 MB, free: 0.793 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3842, allocations: 0 / 406.3 MB, free: 0.793 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001076/0.3853, allocations: 302.6 kB / 406.6 MB, free: 0.5 MB / 302.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.0002621/0.3856, allocations: 177.8 kB / 406.8 MB, free: 332 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003075/0.3886, allocations: 1.456 MB / 408.2 MB, free: 14.85 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3887, allocations: 64 / 408.2 MB, free: 14.85 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001561/0.3902, allocations: 0.8696 MB / 409.1 MB, free: 13.96 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005765/0.3908, allocations: 77.42 kB / 409.2 MB, free: 13.88 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004442/0.3953, allocations: 2.47 MB / 411.7 MB, free: 11.38 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006171/0.3959, allocations: 1.013 MB / 412.7 MB, free: 10.33 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003858/0.3963, allocations: 91.39 kB / 412.8 MB, free: 10.24 MB / 318.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3963, allocations: 0 / 412.8 MB, free: 10.24 MB / 318.1 MB Notification: Performance of Templates: time 0.02396/0.4203, allocations: 19.5 MB / 432.3 MB, free: 6.738 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches