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.0009409/0.0009411, allocations: 95.09 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001208/0.001208, allocations: 207 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.7 MB / 247.5 MB, free: 11.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002325/0.0002326, allocations: 4 kB / 308.4 MB, free: 0.7734 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09576/0.09601, allocations: 51.52 MB / 359.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.006486/0.1025, allocations: 5.971 MB / 365.9 MB, free: 7.242 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004612/0.1072, allocations: 2.527 MB / 368.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009283/0.1081, allocations: 16 kB / 368.4 MB, free: 4.691 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001221/0.1094, allocations: 334.5 kB / 368.7 MB, free: 4.363 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001927/0.1113, allocations: 497.1 kB / 369.2 MB, free: 3.879 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002608/0.1139, allocations: 1.188 MB / 370.4 MB, free: 2.688 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001621/0.1156, allocations: 1.024 MB / 371.4 MB, free: 1.656 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00249/0.1181, allocations: 1.314 MB / 372.8 MB, free: 300 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1957/0.3138, allocations: 375.7 kB / 373.1 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001131/0.315, allocations: 486.9 kB / 373.6 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004144/0.3154, allocations: 47.16 kB / 373.6 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001396/0.3169, allocations: 367.4 kB / 374 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004003/0.3173, allocations: 180.4 kB / 374.2 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001047/0.3183, allocations: 488.8 kB / 374.7 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002276/0.3206, allocations: 1.128 MB / 375.8 MB, free: 9.496 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.3206, allocations: 1.062 kB / 375.8 MB, free: 9.496 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3207, allocations: 0 / 375.8 MB, free: 9.496 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.4e-05/0.3207, allocations: 0.9688 kB / 375.8 MB, free: 9.496 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.005408/0.3261, allocations: 1.457 MB / 377.2 MB, free: 8.812 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.3262, allocations: 9.219 kB / 377.3 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00364/0.3299, allocations: 0.4939 MB / 377.8 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001076/0.3309, allocations: 0.4897 MB / 378.2 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001097/0.3311, allocations: 85.28 kB / 378.3 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003737/0.3315, allocations: 113.7 kB / 378.4 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002747/0.3342, allocations: 0.9746 MB / 379.4 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.876e-05/0.3343, allocations: 13.23 kB / 379.4 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001396/0.3344, allocations: 41.69 kB / 379.5 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.123e-05/0.3345, allocations: 27.38 kB / 379.5 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002299/0.3368, allocations: 0.9786 MB / 380.5 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006961/0.3437, allocations: 3.808 MB / 384.3 MB, free: 6.945 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001849/0.3456, allocations: 1.55 MB / 385.8 MB, free: 5.742 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007952/0.3464, allocations: 437.9 kB / 386.3 MB, free: 5.582 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001449/0.3466, allocations: 181 kB / 386.4 MB, free: 5.395 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000916/0.3475, allocations: 478.9 kB / 386.9 MB, free: 5.164 MB / 302.1 MB Notification: Performance of pre-optimization done (n=96): time 3.757e-06/0.3475, allocations: 0 / 386.9 MB, free: 5.164 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.009359/0.3569, allocations: 4.055 MB / 391 MB, free: 3.242 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.774e-05/0.357, allocations: 153.2 kB / 391.1 MB, free: 3.074 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005978/0.3576, allocations: 407.1 kB / 391.5 MB, free: 2.867 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.582e-05/0.3577, allocations: 47.17 kB / 391.5 MB, free: 2.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00028/0.358, allocations: 428.2 kB / 392 MB, free: 2.488 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002779/0.3583, allocations: 416.4 kB / 392.4 MB, free: 2.168 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/0.3584, allocations: 101.5 kB / 392.5 MB, free: 2.113 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.553e-05/0.3585, allocations: 379.2 kB / 392.8 MB, free: 1.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007495/0.3593, allocations: 358.2 kB / 393.2 MB, free: 1.637 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009041/0.3602, allocations: 0.5433 MB / 393.7 MB, free: 1.309 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001569/0.3618, allocations: 0.9514 MB / 394.7 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/0.3618, allocations: 1.375 kB / 394.7 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002611/0.3644, allocations: 1.387 MB / 396.1 MB, free: 80 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.3644, allocations: 6.125 kB / 396.1 MB, free: 80 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.3645, allocations: 3.906 kB / 396.1 MB, free: 80 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009577/0.3654, allocations: 351.4 kB / 396.4 MB, free: 15.9 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008445/0.3663, allocations: 209.1 kB / 396.6 MB, free: 15.87 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007261/0.3736, allocations: 7.746 MB / 404.4 MB, free: 8.891 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009777/0.3746, allocations: 47.39 kB / 404.4 MB, free: 8.867 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001564/0.3748, allocations: 46.45 kB / 404.5 MB, free: 8.852 MB / 318.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.0006387/0.3754, allocations: 262.9 kB / 404.7 MB, free: 8.648 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001758/0.3756, allocations: 73.53 kB / 404.8 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00267/0.3783, allocations: 1.319 MB / 406.1 MB, free: 7.871 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/0.3783, allocations: 12.19 kB / 406.1 MB, free: 7.871 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.449e-05/0.3783, allocations: 6.344 kB / 406.1 MB, free: 7.871 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.288e-05/0.3783, allocations: 11.95 kB / 406.1 MB, free: 7.859 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004983/0.3833, allocations: 2.549 MB / 408.7 MB, free: 5.652 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.206e-05/0.3834, allocations: 4.188 kB / 408.7 MB, free: 5.648 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007016/0.3841, allocations: 154.5 kB / 408.8 MB, free: 5.508 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000832/0.3849, allocations: 325.5 kB / 409.2 MB, free: 5.18 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.454e-05/0.385, allocations: 27.94 kB / 409.2 MB, free: 5.152 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007067/0.3921, allocations: 7.454 MB / 416.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.3922, allocations: 4.031 kB / 416.7 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003757/0.3959, allocations: 1.829 MB / 418.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005067/0.3965, allocations: 224.4 kB / 418.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001787/0.3967, allocations: 27.98 kB / 418.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007045/0.3974, allocations: 39.98 kB / 418.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002541/0.3976, allocations: 100.8 kB / 418.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.093e-05/0.3977, allocations: 32 kB / 418.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003711/0.3981, allocations: 286.7 kB / 419.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3981, allocations: 0 / 419.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001567/0.3997, allocations: 316 kB / 419.5 MB, free: 10.33 MB / 334.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.0003941/0.4001, allocations: 175.5 kB / 419.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003102/0.4032, allocations: 1.614 MB / 421.3 MB, free: 8.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.4032, allocations: 3.938 kB / 421.3 MB, free: 8.516 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001791/0.405, allocations: 1.167 MB / 422.4 MB, free: 7.32 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008095/0.4058, allocations: 79.83 kB / 422.5 MB, free: 7.246 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004439/0.4103, allocations: 2.536 MB / 425.1 MB, free: 4.66 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008087/0.4111, allocations: 1.028 MB / 426.1 MB, free: 3.605 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000293/0.4114, allocations: 67.42 kB / 426.1 MB, free: 3.539 MB / 334.1 MB Notification: Performance of SimCode: time 9.21e-07/0.4115, allocations: 0 / 426.1 MB, free: 3.539 MB / 334.1 MB Notification: Performance of Templates: time 0.03286/0.4443, allocations: 26.44 MB / 452.6 MB, free: 9.09 MB / 366.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","/var/lib/jenkins1/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