Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.ToroidalCoreAirgap,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.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,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.ToroidalCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0011/0.0011, allocations: 115.9 kB / 18.41 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001266/0.001266, allocations: 207.5 kB / 19.36 MB, free: 3.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 63.98 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09373/0.09496, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.006021/0.101, allocations: 5.056 MB / 364 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003277/0.1043, allocations: 2.141 MB / 366.1 MB, free: 6.105 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002119/0.1045, allocations: 16 kB / 366.1 MB, free: 6.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002829/0.1074, allocations: 1.403 MB / 367.5 MB, free: 4.684 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008595/0.1083, allocations: 425.4 kB / 367.9 MB, free: 4.266 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002011/0.1103, allocations: 1.201 MB / 369.1 MB, free: 3.066 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007139/0.111, allocations: 0.7394 MB / 369.9 MB, free: 2.324 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008676/0.1119, allocations: 0.6572 MB / 370.5 MB, free: 1.652 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003625/0.1123, allocations: 334.8 kB / 370.9 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000428/0.1127, allocations: 426.3 kB / 371.3 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.079e-05/0.1128, allocations: 64 kB / 371.3 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006454/0.1135, allocations: 415.6 kB / 371.8 MB, free: 448 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001164/0.1136, allocations: 163.4 kB / 371.9 MB, free: 284 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.185/0.2986, allocations: 381.5 kB / 372.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002024/0.3006, allocations: 1.196 MB / 373.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.3007, allocations: 0.6094 kB / 373.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3007, allocations: 0.5938 kB / 373.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.35e-05/0.3007, allocations: 0 / 373.5 MB, free: 11.28 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.00454/0.3052, allocations: 1.453 MB / 374.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/0.3053, allocations: 10.06 kB / 374.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002826/0.3081, allocations: 384.3 kB / 375.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002979/0.3085, allocations: 259.1 kB / 375.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.375e-05/0.3086, allocations: 64.66 kB / 375.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001904/0.3088, allocations: 82.52 kB / 375.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001731/0.3105, allocations: 0.8706 MB / 376.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.898e-05/0.3105, allocations: 6.578 kB / 376.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.606e-05/0.3106, allocations: 33.56 kB / 376.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.088e-05/0.3106, allocations: 20.5 kB / 376.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001836/0.3125, allocations: 0.8005 MB / 377.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00459/0.3171, allocations: 3.018 MB / 380.5 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/0.3182, allocations: 0.9981 MB / 381.5 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000485/0.3187, allocations: 243.5 kB / 381.7 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001291/0.3189, allocations: 180.4 kB / 381.9 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.106e-05/0.3189, allocations: 38.34 kB / 381.9 MB, free: 7.852 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.535e-06/0.3189, allocations: 0 / 381.9 MB, free: 7.852 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.006798/0.3257, allocations: 2.397 MB / 384.3 MB, free: 6.789 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.599e-05/0.3258, allocations: 85.38 kB / 384.4 MB, free: 6.695 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000332/0.3261, allocations: 301.6 kB / 384.7 MB, free: 6.523 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.902e-05/0.3262, allocations: 36.14 kB / 384.7 MB, free: 6.484 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/0.3263, allocations: 362.2 kB / 385.1 MB, free: 6.199 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.3265, allocations: 213.2 kB / 385.3 MB, free: 6.035 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002271/0.3267, allocations: 142.8 kB / 385.4 MB, free: 5.961 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.604e-05/0.3268, allocations: 347 kB / 385.8 MB, free: 5.633 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007341/0.3275, allocations: 275.7 kB / 386 MB, free: 5.551 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008542/0.3284, allocations: 0.5015 MB / 386.5 MB, free: 5.168 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001519/0.3299, allocations: 0.8086 MB / 387.3 MB, free: 4.668 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.3299, allocations: 9.938 kB / 387.4 MB, free: 4.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001968/0.3319, allocations: 0.8885 MB / 388.2 MB, free: 4.359 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.3319, allocations: 10.34 kB / 388.3 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/0.332, allocations: 7.906 kB / 388.3 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002515/0.3322, allocations: 80.16 kB / 388.3 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008195/0.333, allocations: 196.4 kB / 388.5 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001465/0.3345, allocations: 2.861 MB / 391.4 MB, free: 1.453 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006681/0.3352, allocations: 65.39 kB / 391.5 MB, free: 1.434 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.329e-05/0.3353, allocations: 40.16 kB / 391.5 MB, free: 1.426 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * 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,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002993/0.3356, allocations: 218.7 kB / 391.7 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.12e-05/0.3357, allocations: 43.59 kB / 391.8 MB, free: 1.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001729/0.3374, allocations: 0.737 MB / 392.5 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.3374, allocations: 6.562 kB / 392.5 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3374, allocations: 0.625 kB / 392.5 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.926e-06/0.3375, allocations: 5.703 kB / 392.5 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002434/0.3399, allocations: 1.414 MB / 393.9 MB, free: 232 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.3399, allocations: 0 / 393.9 MB, free: 232 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000614/0.3405, allocations: 133.3 kB / 394 MB, free: 228 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001806/0.3407, allocations: 62.67 kB / 394.1 MB, free: 196 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.739e-05/0.3408, allocations: 15.16 kB / 394.1 MB, free: 188 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001848/0.3426, allocations: 2.846 MB / 397 MB, free: 13.33 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.3426, allocations: 3.594 kB / 397 MB, free: 13.33 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002372/0.345, allocations: 1.081 MB / 398.1 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002664/0.3453, allocations: 162.6 kB / 398.2 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.557e-05/0.3454, allocations: 10.53 kB / 398.2 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000469/0.3459, allocations: 51.08 kB / 398.3 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/0.346, allocations: 50.34 kB / 398.3 MB, free: 12.67 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.917e-05/0.346, allocations: 15.66 kB / 398.3 MB, free: 12.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002235/0.3463, allocations: 207.5 kB / 398.5 MB, free: 12.55 MB / 318.1 MB Notification: Performance of sort global known variables: time 8.32e-07/0.3463, allocations: 0 / 398.5 MB, free: 12.55 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000816/0.3471, allocations: 181.5 kB / 398.7 MB, free: 12.52 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (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,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002796/0.3474, allocations: 155.8 kB / 398.9 MB, free: 12.42 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002011/0.3494, allocations: 0.9101 MB / 399.8 MB, free: 11.93 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3494, allocations: 0 / 399.8 MB, free: 11.93 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009351/0.3504, allocations: 0.5525 MB / 400.3 MB, free: 11.55 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004533/0.3508, allocations: 41.56 kB / 400.4 MB, free: 11.53 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002745/0.3536, allocations: 1.225 MB / 401.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004233/0.354, allocations: 0.8854 MB / 402.5 MB, free: 10.01 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000367/0.3544, allocations: 90.59 kB / 402.6 MB, free: 9.957 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001557/0.3546, allocations: 48.83 kB / 402.6 MB, free: 9.941 MB / 318.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3546, allocations: 0.9844 kB / 402.6 MB, free: 9.941 MB / 318.1 MB Notification: Performance of Templates: time 0.01188/0.3665, allocations: 6.294 MB / 408.9 MB, free: 5.633 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches