Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001007/0.001007, allocations: 114.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001153/0.001154, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2815, allocations: 50.54 MB / 409.2 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.00832/0.2899, allocations: 6.502 MB / 415.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004662/0.2946, allocations: 2.639 MB / 418.4 MB, free: 8.426 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006716/0.2953, allocations: 20 kB / 418.4 MB, free: 8.406 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002948/0.2983, allocations: 1.252 MB / 419.7 MB, free: 7.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001548/0.2998, allocations: 0.5318 MB / 420.2 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002421/0.3023, allocations: 1.264 MB / 421.4 MB, free: 5.348 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001411/0.3037, allocations: 1.075 MB / 422.5 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001341/0.305, allocations: 0.899 MB / 423.4 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00063/0.3057, allocations: 446.3 kB / 423.9 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006574/0.3063, allocations: 0.5446 MB / 424.4 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001323/0.3065, allocations: 100 kB / 424.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008172/0.3073, allocations: 419.6 kB / 424.9 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001972/0.3075, allocations: 227.2 kB / 425.1 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004627/0.308, allocations: 0.5247 MB / 425.7 MB, free: 1.105 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001701/0.3097, allocations: 1.533 MB / 427.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3097, allocations: 4 kB / 427.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3097, allocations: 0 / 427.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.523e-05/0.3098, allocations: 0 / 427.2 MB, free: 15.56 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.004188/0.3139, allocations: 1.669 MB / 428.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.314, allocations: 12.03 kB / 428.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003211/0.3172, allocations: 495.8 kB / 429.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006411/0.3179, allocations: 0.4984 MB / 429.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.591e-05/0.3179, allocations: 82.22 kB / 429.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001499/0.3181, allocations: 116 kB / 430 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001747/0.3199, allocations: 0.9667 MB / 431 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.337e-05/0.3199, allocations: 7.984 kB / 431 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.251e-05/0.32, allocations: 44 kB / 431.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.249e-05/0.32, allocations: 28 kB / 431.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001815/0.3218, allocations: 0.9652 MB / 432.1 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005508/0.3274, allocations: 3.761 MB / 435.8 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002032/0.3294, allocations: 1.552 MB / 437.4 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007398/0.3302, allocations: 434.6 kB / 437.8 MB, free: 4.426 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001627/0.3303, allocations: 183.2 kB / 438 MB, free: 4.207 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008827/0.3312, allocations: 478.5 kB / 438.4 MB, free: 3.719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 2.194e-06/0.3312, allocations: 0 / 438.4 MB, free: 3.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.008797/0.3401, allocations: 4.023 MB / 442.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.3402, allocations: 145.5 kB / 442.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004863/0.3407, allocations: 405.5 kB / 443 MB, free: 15 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.631e-05/0.3408, allocations: 45.7 kB / 443 MB, free: 14.95 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002952/0.3411, allocations: 448.9 kB / 443.5 MB, free: 14.51 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002866/0.3413, allocations: 448.1 kB / 443.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002867/0.3416, allocations: 206.8 kB / 444.1 MB, free: 13.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.3418, allocations: 378.8 kB / 444.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006844/0.3425, allocations: 350.5 kB / 444.8 MB, free: 13.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008895/0.3434, allocations: 0.5429 MB / 445.4 MB, free: 12.53 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00159/0.345, allocations: 0.946 MB / 446.3 MB, free: 11.53 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.345, allocations: 4 kB / 446.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002591/0.3476, allocations: 1.39 MB / 447.7 MB, free: 10.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.3476, allocations: 8 kB / 447.7 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.3477, allocations: 4 kB / 447.7 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008812/0.3485, allocations: 363.1 kB / 448.1 MB, free: 9.738 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008467/0.3494, allocations: 203.7 kB / 448.3 MB, free: 9.539 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00878/0.3582, allocations: 8.488 MB / 456.8 MB, free: 0.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008292/0.3591, allocations: 51.97 kB / 456.8 MB, free: 460 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001332/0.3592, allocations: 44 kB / 456.9 MB, free: 416 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * 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.0005106/0.3597, allocations: 257.7 kB / 457.1 MB, free: 148 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001464/0.3599, allocations: 79.52 kB / 457.2 MB, free: 68 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002678/0.3626, allocations: 1.313 MB / 458.5 MB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.187e-05/0.3626, allocations: 12 kB / 458.5 MB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.82e-05/0.3626, allocations: 8 kB / 458.5 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.338e-05/0.3626, allocations: 3.984 kB / 458.5 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00461/0.3673, allocations: 2.522 MB / 461.1 MB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.3673, allocations: 0 / 461.1 MB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006832/0.368, allocations: 160 kB / 461.2 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000794/0.3688, allocations: 331 kB / 461.5 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.219e-05/0.3689, allocations: 27.98 kB / 461.6 MB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008051/0.3769, allocations: 8.116 MB / 469.7 MB, free: 2.918 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.3769, allocations: 4.031 kB / 469.7 MB, free: 2.914 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003349/0.3803, allocations: 1.833 MB / 471.5 MB, free: 1.035 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003472/0.3807, allocations: 216.5 kB / 471.7 MB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001235/0.3808, allocations: 27.98 kB / 471.8 MB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005453/0.3813, allocations: 47.92 kB / 471.8 MB, free: 0.7305 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001934/0.3815, allocations: 104.7 kB / 471.9 MB, free: 0.6289 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.501e-05/0.3816, allocations: 32 kB / 471.9 MB, free: 0.5977 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003343/0.382, allocations: 275.2 kB / 472.2 MB, free: 336 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.382, allocations: 3.938 kB / 472.2 MB, free: 332 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001267/0.3832, allocations: 327.9 kB / 472.5 MB, free: 4 kB / 382.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_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 80 * 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.0003539/0.3836, allocations: 163 kB / 472.7 MB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002783/0.3864, allocations: 1.623 MB / 474.3 MB, free: 14.16 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.3864, allocations: 0 / 474.3 MB, free: 14.16 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001783/0.3882, allocations: 1.147 MB / 475.5 MB, free: 12.96 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005944/0.3888, allocations: 81.48 kB / 475.5 MB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003652/0.3925, allocations: 1.977 MB / 477.5 MB, free: 10.86 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006702/0.3932, allocations: 1.024 MB / 478.5 MB, free: 9.805 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004342/0.3936, allocations: 98.17 kB / 478.6 MB, free: 9.707 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001725/0.3938, allocations: 55.42 kB / 478.7 MB, free: 9.652 MB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3938, allocations: 0 / 478.7 MB, free: 9.652 MB / 398.1 MB Notification: Performance of Templates: time 0.01975/0.4136, allocations: 11.3 MB / 490 MB, free: 14.36 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches