Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reluctance.abs_V_m|reluctance.abs_Phi|permeance.abs_V_m|permeance.abs_Phi|magFluxSource.gamma",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents") translateModel(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reluctance.abs_V_m|reluctance.abs_Phi|permeance.abs_V_m|permeance.abs_Phi|magFluxSource.gamma",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001294/0.001294, allocations: 118.5 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001341/0.001341, allocations: 215.7 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2336/0.2336, allocations: 46.13 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00223/0.00223, allocations: 79.88 kB / 482 MB, free: 4.047 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3463/0.3485, allocations: 62.43 MB / 0.5317 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents): time 0.005462/0.354, allocations: 2.498 MB / 0.5341 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002594/0.3566, allocations: 1.101 MB / 0.5352 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.3567, allocations: 4.125 kB / 0.5352 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001654/0.3584, allocations: 0.5045 MB / 0.5357 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004332/0.3588, allocations: 114.7 kB / 0.5358 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001193/0.36, allocations: 479.7 kB / 0.5363 GB, free: 9.934 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004514/0.3605, allocations: 217.9 kB / 0.5365 GB, free: 9.809 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005401/0.361, allocations: 207 kB / 0.5367 GB, free: 9.668 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002475/0.3612, allocations: 108.2 kB / 0.5368 GB, free: 9.602 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002113/0.3615, allocations: 121 kB / 0.5369 GB, free: 9.523 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.604e-05/0.3615, allocations: 22.09 kB / 0.5369 GB, free: 9.523 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004421/0.3619, allocations: 154 kB / 0.5371 GB, free: 9.461 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.499e-05/0.362, allocations: 55.48 kB / 0.5371 GB, free: 9.414 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001701/0.3622, allocations: 112.2 kB / 0.5372 GB, free: 9.336 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007761/0.363, allocations: 400.9 kB / 0.5376 GB, free: 9.059 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.363, allocations: 0 / 0.5376 GB, free: 9.059 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.363, allocations: 0 / 0.5376 GB, free: 9.059 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.363, allocations: 0.9688 kB / 0.5376 GB, free: 9.059 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001864/0.3648, allocations: 0.6306 MB / 0.5382 GB, free: 8.504 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.3649, allocations: 8.969 kB / 0.5382 GB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000532/0.3654, allocations: 49.48 kB / 0.5383 GB, free: 8.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002145/0.3656, allocations: 194.6 kB / 0.5385 GB, free: 8.258 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.707e-05/0.3657, allocations: 18.53 kB / 0.5385 GB, free: 8.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.194e-05/0.3657, allocations: 24.59 kB / 0.5385 GB, free: 8.242 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008276/0.3666, allocations: 300.4 kB / 0.5388 GB, free: 8.043 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.46e-05/0.3666, allocations: 4.891 kB / 0.5388 GB, free: 8.039 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.538e-05/0.3666, allocations: 9.969 kB / 0.5388 GB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.3666, allocations: 6.219 kB / 0.5388 GB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000806/0.3674, allocations: 231.9 kB / 0.539 GB, free: 7.926 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002032/0.3695, allocations: 0.9935 MB / 0.54 GB, free: 7.059 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00075/0.3702, allocations: 368.1 kB / 0.5404 GB, free: 6.727 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004991/0.3707, allocations: 122.3 kB / 0.5405 GB, free: 6.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002329/0.371, allocations: 174.6 kB / 0.5407 GB, free: 6.461 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.081e-05/0.371, allocations: 40.69 kB / 0.5407 GB, free: 6.414 MB / 398.1 MB Notification: Performance of pre-optimization done (n=19): time 1.954e-06/0.371, allocations: 0 / 0.5407 GB, free: 6.414 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001755/0.3728, allocations: 0.4932 MB / 0.5412 GB, free: 6.035 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.48e-05/0.3728, allocations: 79.83 kB / 0.5412 GB, free: 5.941 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001695/0.373, allocations: 142.9 kB / 0.5414 GB, free: 5.816 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.474e-05/0.373, allocations: 30.8 kB / 0.5414 GB, free: 5.781 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.3732, allocations: 146.8 kB / 0.5416 GB, free: 5.645 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.233e-05/0.3732, allocations: 74.95 kB / 0.5416 GB, free: 5.578 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.3733, allocations: 38.83 kB / 0.5417 GB, free: 5.547 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.3735, allocations: 325 kB / 0.542 GB, free: 5.223 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000305/0.3738, allocations: 70.38 kB / 0.542 GB, free: 5.191 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003554/0.3742, allocations: 127.9 kB / 0.5422 GB, free: 5.09 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000695/0.3749, allocations: 207.5 kB / 0.5424 GB, free: 4.953 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3749, allocations: 0 / 0.5424 GB, free: 4.953 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0009304/0.3758, allocations: 279.1 kB / 0.5426 GB, free: 4.789 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.3758, allocations: 6.938 kB / 0.5426 GB, free: 4.789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.3758, allocations: 1.156 kB / 0.5426 GB, free: 4.789 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000282/0.3761, allocations: 48.78 kB / 0.5427 GB, free: 4.758 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002669/0.3764, allocations: 43.58 kB / 0.5427 GB, free: 4.746 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002729/0.3791, allocations: 2.848 MB / 0.5455 GB, free: 1.797 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001767/0.3793, allocations: 26.7 kB / 0.5455 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.3793, allocations: 10.69 kB / 0.5455 GB, free: 1.777 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (19): * Single equations (assignments): 17 * 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.0001696/0.3795, allocations: 144 kB / 0.5457 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.488e-05/0.3796, allocations: 10.86 kB / 0.5457 GB, free: 1.633 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007134/0.3803, allocations: 273.6 kB / 0.5459 GB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.3803, allocations: 2.578 kB / 0.5459 GB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3803, allocations: 5.062 kB / 0.546 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3803, allocations: 5.109 kB / 0.546 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001254/0.3815, allocations: 0.6409 MB / 0.5466 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.196e-05/0.3816, allocations: 9.156 kB / 0.5466 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000183/0.3817, allocations: 41.12 kB / 0.5466 GB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000138/0.3819, allocations: 47.94 kB / 0.5467 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.938e-05/0.3819, allocations: 6.094 kB / 0.5467 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002879/0.3848, allocations: 2.831 MB / 0.5494 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.3848, allocations: 1.062 kB / 0.5494 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009921/0.3858, allocations: 0.5247 MB / 0.55 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.01e-05/0.3858, allocations: 89.81 kB / 0.55 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.387e-05/0.3859, allocations: 5.875 kB / 0.5501 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002085/0.3861, allocations: 16.59 kB / 0.5501 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.364e-05/0.3861, allocations: 20.2 kB / 0.5501 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.656e-05/0.3862, allocations: 9.094 kB / 0.5501 GB, free: 13.38 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001075/0.3863, allocations: 107.1 kB / 0.5502 GB, free: 13.29 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3863, allocations: 4.062 kB / 0.5502 GB, free: 13.29 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005214/0.3868, allocations: 76.47 kB / 0.5503 GB, free: 13.27 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (magFluxSource.port_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 (15): * Single equations (assignments): 13 * 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.0002606/0.387, allocations: 125.5 kB / 0.5504 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009427/0.388, allocations: 416.1 kB / 0.5508 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.388, allocations: 0 / 0.5508 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005977/0.3886, allocations: 323.2 kB / 0.5511 GB, free: 12.55 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004685/0.3891, allocations: 13.56 kB / 0.5511 GB, free: 12.55 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009689/0.39, allocations: 471.5 kB / 0.5516 GB, free: 12.1 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003856/0.3904, allocations: 0.7399 MB / 0.5523 GB, free: 11.33 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.333e-05/0.3905, allocations: 17.42 kB / 0.5523 GB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.586e-05/0.3905, allocations: 15.44 kB / 0.5523 GB, free: 11.3 MB / 414.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3905, allocations: 0 / 0.5523 GB, free: 11.3 MB / 414.1 MB Notification: Performance of Templates: time 0.006826/0.3974, allocations: 2.393 MB / 0.5547 GB, free: 8.914 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.sim & ./ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/QuasiStatic/FluxTubes/VariableComponents/VariableComponents.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches