Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 113.2 kB / 17.73 MB, free: 5.309 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.001174/0.001174, allocations: 188.2 kB / 18.66 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.362/1.362, allocations: 205.1 MB / 224.5 MB, free: 12.28 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 56.2 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1046, allocations: 46.62 MB / 375.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.2408/0.3455, allocations: 6.44 MB / 381.6 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005931/0.3515, allocations: 2.591 MB / 384.2 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009001/0.3525, allocations: 18.72 kB / 384.2 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003236/0.3558, allocations: 1.289 MB / 385.5 MB, free: 8.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002303/0.3581, allocations: 0.7018 MB / 386.2 MB, free: 7.926 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002266/0.3604, allocations: 1.104 MB / 387.3 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001826/0.3622, allocations: 1.093 MB / 388.4 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001493/0.3637, allocations: 0.9062 MB / 389.3 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007941/0.3645, allocations: 448.4 kB / 389.7 MB, free: 6 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007674/0.3653, allocations: 0.5653 MB / 390.3 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001528/0.3655, allocations: 98.28 kB / 390.4 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001141/0.3666, allocations: 412.8 kB / 390.8 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001941/0.3668, allocations: 238.8 kB / 391 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004824/0.3673, allocations: 0.5264 MB / 391.5 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00218/0.3695, allocations: 1.515 MB / 393.1 MB, free: 4.449 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.3695, allocations: 5.469 kB / 393.1 MB, free: 4.445 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3695, allocations: 0 / 393.1 MB, free: 4.445 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.635e-05/0.3695, allocations: 4 kB / 393.1 MB, free: 4.441 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.004403/0.3739, allocations: 1.649 MB / 394.7 MB, free: 3.492 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.374, allocations: 9.344 kB / 394.7 MB, free: 3.492 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004017/0.378, allocations: 0.5723 MB / 395.3 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008916/0.3789, allocations: 0.4969 MB / 395.8 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.093e-05/0.379, allocations: 84.75 kB / 395.9 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002078/0.3792, allocations: 115.7 kB / 396 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00223/0.3815, allocations: 1.011 MB / 397 MB, free: 2.457 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.796e-05/0.3815, allocations: 1.094 kB / 397 MB, free: 2.457 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001017/0.3816, allocations: 46.52 kB / 397.1 MB, free: 2.422 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.713e-05/0.3817, allocations: 32.12 kB / 397.1 MB, free: 2.418 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0021/0.3838, allocations: 1.028 MB / 398.1 MB, free: 2.062 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006171/0.39, allocations: 3.849 MB / 402 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002398/0.3924, allocations: 2.05 MB / 404 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008596/0.3933, allocations: 445.7 kB / 404.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001565/0.3934, allocations: 103.8 kB / 404.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009309/0.3944, allocations: 484.4 kB / 405 MB, free: 13.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 3.306e-06/0.3944, allocations: 0 / 405 MB, free: 13.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=127): time 0.009686/0.4041, allocations: 4.021 MB / 409 MB, free: 10.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.99e-05/0.4042, allocations: 147.5 kB / 409.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005501/0.4048, allocations: 416.8 kB / 409.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.9e-05/0.4049, allocations: 46.05 kB / 409.6 MB, free: 10.28 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003455/0.4052, allocations: 445.2 kB / 410.1 MB, free: 9.887 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003175/0.4056, allocations: 433.1 kB / 410.5 MB, free: 9.508 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003282/0.4059, allocations: 212.4 kB / 410.7 MB, free: 9.383 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002317/0.4061, allocations: 386.2 kB / 411.1 MB, free: 9.012 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006786/0.4068, allocations: 361.4 kB / 411.4 MB, free: 8.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000869/0.4077, allocations: 0.5853 MB / 412 MB, free: 8.398 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0016/0.4093, allocations: 1 MB / 413 MB, free: 7.754 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.4093, allocations: 2.531 kB / 413 MB, free: 7.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002807/0.4121, allocations: 1.436 MB / 414.5 MB, free: 6.996 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.4122, allocations: 16.23 kB / 414.5 MB, free: 6.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/0.4122, allocations: 5.5 kB / 414.5 MB, free: 6.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009941/0.4132, allocations: 350 kB / 414.8 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009404/0.4141, allocations: 225.7 kB / 415 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007978/0.4221, allocations: 8.486 MB / 423.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009537/0.4231, allocations: 47.97 kB / 423.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.941e-05/0.4232, allocations: 48 kB / 423.6 MB, free: 13.7 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,4,100.0%), (1,2,100.0%), (1,19,100.0%), (1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000561/0.4238, allocations: 257.7 kB / 423.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.4239, allocations: 79.05 kB / 423.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002581/0.4265, allocations: 1.325 MB / 425.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/0.4265, allocations: 12 kB / 425.3 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/0.4265, allocations: 11.94 kB / 425.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.4266, allocations: 7.984 kB / 425.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004287/0.4309, allocations: 2.561 MB / 427.9 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.4309, allocations: 0 / 427.9 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006994/0.4316, allocations: 159.8 kB / 428 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008062/0.4324, allocations: 323.4 kB / 428.3 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.43e-05/0.4325, allocations: 27.94 kB / 428.4 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00826/0.4407, allocations: 8.104 MB / 436.5 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.4408, allocations: 4.125 kB / 436.5 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003458/0.4442, allocations: 1.841 MB / 438.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004484/0.4447, allocations: 224.1 kB / 438.5 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00011/0.4448, allocations: 27.98 kB / 438.6 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005113/0.4454, allocations: 39.98 kB / 438.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002315/0.4456, allocations: 104.7 kB / 438.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.335e-05/0.4457, allocations: 35.98 kB / 438.7 MB, free: 13.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003505/0.446, allocations: 279.2 kB / 439 MB, free: 13.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.446, allocations: 0 / 439 MB, free: 13.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001525/0.4476, allocations: 328 kB / 439.3 MB, free: 13.23 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,19,100.0%), (1,2,100.0%), (1,4,100.0%), (1,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003554/0.4479, allocations: 167 kB / 439.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002889/0.4508, allocations: 1.644 MB / 441.1 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.4508, allocations: 0 / 441.1 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001627/0.4525, allocations: 1.15 MB / 442.3 MB, free: 10.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006573/0.4532, allocations: 74.02 kB / 442.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004048/0.4572, allocations: 1.976 MB / 444.3 MB, free: 8.066 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006879/0.4579, allocations: 1.032 MB / 445.4 MB, free: 7.008 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000439/0.4584, allocations: 98.45 kB / 445.5 MB, free: 6.906 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002093/0.4586, allocations: 59.42 kB / 445.5 MB, free: 6.848 MB / 366.1 MB Notification: Performance of SimCode: time 1.333e-06/0.4586, allocations: 0 / 445.5 MB, free: 6.848 MB / 366.1 MB Notification: Performance of Templates: time 0.01954/0.4781, allocations: 11.28 MB / 456.8 MB, free: 11.55 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches