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.001546/0.001546, allocations: 111.5 kB / 17.69 MB, free: 5.438 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.001733/0.001733, allocations: 192 kB / 18.63 MB, free: 4.508 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.397/1.397, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001003/0.001003, allocations: 51.67 kB / 302.1 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08378/0.0848, allocations: 49.45 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.007181/0.09201, allocations: 6.682 MB / 358.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00366/0.09569, allocations: 2.393 MB / 360.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002945/0.096, allocations: 20 kB / 360.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00373/0.09974, allocations: 1.885 MB / 362.5 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001374/0.1011, allocations: 0.695 MB / 363.2 MB, free: 7.957 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002042/0.1032, allocations: 1.178 MB / 364.4 MB, free: 6.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0011/0.1043, allocations: 1.121 MB / 365.5 MB, free: 5.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00122/0.1055, allocations: 0.9427 MB / 366.4 MB, free: 4.699 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005134/0.106, allocations: 490.1 kB / 366.9 MB, free: 4.219 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005935/0.1066, allocations: 0.6186 MB / 367.5 MB, free: 3.598 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001196/0.1068, allocations: 100 kB / 367.6 MB, free: 3.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007388/0.1075, allocations: 427.6 kB / 368.1 MB, free: 3.082 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001595/0.1077, allocations: 247.1 kB / 368.3 MB, free: 2.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004346/0.1081, allocations: 0.5675 MB / 368.9 MB, free: 2.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001509/0.1096, allocations: 1.643 MB / 370.5 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.1097, allocations: 0 / 370.5 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1097, allocations: 3.938 kB / 370.5 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.44e-05/0.1097, allocations: 0 / 370.5 MB, free: 0.6172 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.1511/0.2608, allocations: 2.013 MB / 372.5 MB, free: 25.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.2609, allocations: 9.281 kB / 372.5 MB, free: 25.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003534/0.2644, allocations: 0.5079 MB / 373 MB, free: 25.19 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002709/0.2647, allocations: 308.9 kB / 373.3 MB, free: 24.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.007e-05/0.2648, allocations: 97.84 kB / 373.4 MB, free: 24.9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000173/0.265, allocations: 131.1 kB / 373.6 MB, free: 24.85 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002253/0.2673, allocations: 1.297 MB / 374.9 MB, free: 24.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.401e-05/0.2673, allocations: 2.297 kB / 374.9 MB, free: 24.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/0.2674, allocations: 55.78 kB / 374.9 MB, free: 24.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.246e-05/0.2674, allocations: 30.25 kB / 374.9 MB, free: 24.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002286/0.2697, allocations: 1.201 MB / 376.1 MB, free: 23.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005721/0.2755, allocations: 4.186 MB / 380.3 MB, free: 21.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002082/0.2776, allocations: 2.443 MB / 382.8 MB, free: 19.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008971/0.2785, allocations: 0.5064 MB / 383.3 MB, free: 19.13 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001232/0.2786, allocations: 113.3 kB / 383.4 MB, free: 19.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.337e-05/0.2786, allocations: 44.69 kB / 383.4 MB, free: 18.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=122): time 2.505e-06/0.2786, allocations: 0 / 383.4 MB, free: 18.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.0103/0.289, allocations: 3.79 MB / 387.2 MB, free: 17.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.542e-05/0.289, allocations: 95.17 kB / 387.3 MB, free: 17.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003659/0.2894, allocations: 391.8 kB / 387.7 MB, free: 17.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.731e-05/0.2894, allocations: 46.27 kB / 387.7 MB, free: 16.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.2896, allocations: 452.2 kB / 388.2 MB, free: 16.58 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001848/0.2898, allocations: 431.7 kB / 388.6 MB, free: 16.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002994/0.2901, allocations: 230.1 kB / 388.8 MB, free: 16.07 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.993e-05/0.2902, allocations: 376.2 kB / 389.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009612/0.2911, allocations: 435 kB / 389.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001061/0.2922, allocations: 0.6953 MB / 390.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001965/0.2942, allocations: 1.179 MB / 391.5 MB, free: 14.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.2942, allocations: 0 / 391.5 MB, free: 14.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002789/0.297, allocations: 1.471 MB / 393 MB, free: 13.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.297, allocations: 11.34 kB / 393 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/0.2971, allocations: 7.156 kB / 393 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005139/0.2976, allocations: 203.3 kB / 393.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/0.2988, allocations: 286.1 kB / 393.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003143/0.3019, allocations: 4.377 MB / 397.8 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000843/0.3028, allocations: 87 kB / 397.9 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.362e-05/0.3029, allocations: 51.36 kB / 398 MB, free: 9.305 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.0003529/0.3033, allocations: 267.6 kB / 398.2 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001251/0.3034, allocations: 62.22 kB / 398.3 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002628/0.306, allocations: 1.357 MB / 399.7 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.306, allocations: 12 kB / 399.7 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.3061, allocations: 4 kB / 399.7 MB, free: 8.258 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.3061, allocations: 11.92 kB / 399.7 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003899/0.31, allocations: 2.608 MB / 402.3 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.31, allocations: 0 / 402.3 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009208/0.3109, allocations: 215.7 kB / 402.5 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003604/0.3113, allocations: 176.5 kB / 402.7 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.886e-05/0.3114, allocations: 31.98 kB / 402.7 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0027/0.3141, allocations: 4.183 MB / 406.9 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3141, allocations: 0 / 406.9 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003673/0.3178, allocations: 1.884 MB / 408.8 MB, free: 14.78 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003622/0.3181, allocations: 228.1 kB / 409 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001195/0.3183, allocations: 27.94 kB / 409 MB, free: 14.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007108/0.319, allocations: 64 kB / 409.1 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001883/0.3192, allocations: 88.88 kB / 409.2 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.144e-05/0.3193, allocations: 35.98 kB / 409.2 MB, free: 14.33 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002831/0.3196, allocations: 267.2 kB / 409.5 MB, free: 14.07 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3196, allocations: 0 / 409.5 MB, free: 14.07 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001114/0.3207, allocations: 312 kB / 409.8 MB, free: 13.76 MB / 318.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.0002848/0.321, allocations: 169.7 kB / 409.9 MB, free: 13.59 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003005/0.324, allocations: 1.458 MB / 411.4 MB, free: 12.11 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.324, allocations: 4.062 kB / 411.4 MB, free: 12.11 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001551/0.3256, allocations: 0.8622 MB / 412.3 MB, free: 11.22 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005501/0.3261, allocations: 78.27 kB / 412.3 MB, free: 11.14 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004026/0.3302, allocations: 1.935 MB / 414.3 MB, free: 9.188 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005722/0.3308, allocations: 1.005 MB / 415.3 MB, free: 8.152 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006071/0.3314, allocations: 150.6 kB / 415.4 MB, free: 8 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002498/0.3316, allocations: 75.41 kB / 415.5 MB, free: 7.926 MB / 318.1 MB Notification: Performance of SimCode: time 4e-07/0.3316, allocations: 0 / 415.5 MB, free: 7.926 MB / 318.1 MB Notification: Performance of Templates: time 0.01863/0.3503, allocations: 10.15 MB / 425.7 MB, free: 13.84 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 -s gbode -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