Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sensors.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Magnetic.FluxTubes.Sensors,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|magneticPotentialDifferenceSensor.Phi|magneticFluxSensor.Phi|magneticPotentialDifferenceSensor.V_m",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sensors") translateModel(ModelicaTest.Magnetic.FluxTubes.Sensors,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|magneticPotentialDifferenceSensor.Phi|magneticFluxSensor.Phi|magneticPotentialDifferenceSensor.V_m",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sensors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001749/0.001749, allocations: 198.2 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.246/1.246, allocations: 226.6 MB / 243.4 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007547/0.0007548, allocations: 95.95 kB / 295.5 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3071/0.3071, allocations: 44.82 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002928/0.0002929, allocations: 8 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.2929, allocations: 62.96 MB / 0.5159 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sensors): time 0.001597/0.2945, allocations: 1.597 MB / 0.5174 GB, free: 35.9 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006571/0.2952, allocations: 0.5387 MB / 0.518 GB, free: 35.51 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.518e-05/0.2953, allocations: 6.906 kB / 0.518 GB, free: 35.51 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001198/0.2954, allocations: 25.53 kB / 0.518 GB, free: 35.5 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001024/0.2955, allocations: 22.06 kB / 0.518 GB, free: 35.48 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001332/0.2957, allocations: 31.7 kB / 0.518 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001242/0.2958, allocations: 139.8 kB / 0.5182 GB, free: 35.39 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.2959, allocations: 57.94 kB / 0.5182 GB, free: 35.36 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001412/0.2961, allocations: 47.38 kB / 0.5183 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.47e-05/0.2962, allocations: 55.38 kB / 0.5183 GB, free: 35.32 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.029e-05/0.2962, allocations: 13.66 kB / 0.5183 GB, free: 35.31 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.908e-05/0.2962, allocations: 12.53 kB / 0.5184 GB, free: 35.3 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.015e-05/0.2962, allocations: 26.22 kB / 0.5184 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.344e-05/0.2963, allocations: 81.53 kB / 0.5185 GB, free: 35.22 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 9.545e-05/0.2964, allocations: 118.6 kB / 0.5186 GB, free: 35.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2964, allocations: 0 / 0.5186 GB, free: 35.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2964, allocations: 0 / 0.5186 GB, free: 35.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.2964, allocations: 0 / 0.5186 GB, free: 35.2 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0004497/0.2969, allocations: 424.2 kB / 0.519 GB, free: 34.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.035e-05/0.2969, allocations: 8.562 kB / 0.519 GB, free: 34.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.495e-05/0.297, allocations: 17.25 kB / 0.519 GB, free: 34.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001394/0.2971, allocations: 195.4 kB / 0.5192 GB, free: 34.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.2971, allocations: 10.38 kB / 0.5192 GB, free: 34.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.718e-05/0.2971, allocations: 12.94 kB / 0.5192 GB, free: 34.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000288/0.2974, allocations: 159.8 kB / 0.5194 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.2975, allocations: 3.281 kB / 0.5194 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.2975, allocations: 6.875 kB / 0.5194 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.2975, allocations: 2.625 kB / 0.5194 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002524/0.2977, allocations: 115.3 kB / 0.5195 GB, free: 34.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007635/0.2985, allocations: 0.6226 MB / 0.5201 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002059/0.2987, allocations: 68.2 kB / 0.5202 GB, free: 33.92 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.177e-05/0.2988, allocations: 40.86 kB / 0.5202 GB, free: 33.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.2989, allocations: 0 / 0.5202 GB, free: 33.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.082e-05/0.2989, allocations: 33.84 kB / 0.5202 GB, free: 33.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 8.31e-07/0.2989, allocations: 0 / 0.5202 GB, free: 33.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0003338/0.2992, allocations: 131.1 kB / 0.5204 GB, free: 33.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.929e-05/0.2993, allocations: 51.41 kB / 0.5204 GB, free: 33.74 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.756e-05/0.2993, allocations: 156.3 kB / 0.5206 GB, free: 33.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.006e-06/0.2994, allocations: 25.7 kB / 0.5206 GB, free: 33.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.54e-05/0.2994, allocations: 134.9 kB / 0.5207 GB, free: 33.47 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.013e-05/0.2994, allocations: 10.75 kB / 0.5207 GB, free: 33.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.731e-06/0.2994, allocations: 8 kB / 0.5207 GB, free: 33.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.107e-05/0.2995, allocations: 321.3 kB / 0.521 GB, free: 33.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.522e-05/0.2996, allocations: 31 kB / 0.5211 GB, free: 33.13 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001017/0.2997, allocations: 71.73 kB / 0.5211 GB, free: 33.08 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000184/0.2999, allocations: 119.5 kB / 0.5212 GB, free: 33 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2999, allocations: 0 / 0.5212 GB, free: 33 MB / 378.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002389/0.3001, allocations: 130.7 kB / 0.5214 GB, free: 32.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.3002, allocations: 5.594 kB / 0.5214 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.3002, allocations: 0 / 0.5214 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.3002, allocations: 2.938 kB / 0.5214 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.3003, allocations: 35.67 kB / 0.5214 GB, free: 32.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.3003, allocations: 6.781 kB / 0.5214 GB, free: 32.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.507e-05/0.3004, allocations: 20.38 kB / 0.5214 GB, free: 32.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/0.3004, allocations: 10.31 kB / 0.5214 GB, free: 32.92 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.96e-05/0.3005, allocations: 119.7 kB / 0.5216 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.537e-05/0.3005, allocations: 6.906 kB / 0.5216 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.526e-05/0.3006, allocations: 11.31 kB / 0.5216 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.3006, allocations: 6.812 kB / 0.5216 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.3006, allocations: 0 / 0.5216 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.3006, allocations: 3.844 kB / 0.5216 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000145/0.3007, allocations: 203.8 kB / 0.5218 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.3007, allocations: 3.938 kB / 0.5218 GB, free: 32.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.487e-05/0.3008, allocations: 22.38 kB / 0.5218 GB, free: 32.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.3008, allocations: 0 / 0.5218 GB, free: 32.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-06/0.3009, allocations: 4 kB / 0.5218 GB, free: 32.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3009, allocations: 4.016 kB / 0.5218 GB, free: 32.56 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3009, allocations: 3.984 kB / 0.5218 GB, free: 32.56 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002093/0.3011, allocations: 197.3 kB / 0.522 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.226e-05/0.3011, allocations: 87.89 kB / 0.5221 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.459e-05/0.3011, allocations: 0 / 0.5221 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.766e-05/0.3012, allocations: 15.59 kB / 0.5221 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.519e-05/0.3013, allocations: 3.188 kB / 0.5221 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.3013, allocations: 2.812 kB / 0.5221 GB, free: 32.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.071e-05/0.3013, allocations: 119.5 kB / 0.5222 GB, free: 32.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.142e-06/0.3013, allocations: 0 / 0.5222 GB, free: 32.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002274/0.3016, allocations: 28.16 kB / 0.5223 GB, free: 32.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.69e-05/0.3016, allocations: 99.19 kB / 0.5223 GB, free: 32.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002187/0.3019, allocations: 82.19 kB / 0.5224 GB, free: 32.09 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.3019, allocations: 0 / 0.5224 GB, free: 32.09 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.526e-05/0.302, allocations: 31.27 kB / 0.5225 GB, free: 32.08 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002432/0.3022, allocations: 10.3 kB / 0.5225 GB, free: 32.08 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003969/0.3026, allocations: 350.4 kB / 0.5228 GB, free: 31.83 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001091/0.3027, allocations: 0.7086 MB / 0.5235 GB, free: 31.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.24e-05/0.3028, allocations: 10.31 kB / 0.5235 GB, free: 31.12 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.3028, allocations: 0 / 0.5235 GB, free: 31.12 MB / 378.7 MB Notification: Performance of Templates: time 0.002093/0.3049, allocations: 1.229 MB / 0.5247 GB, free: 31 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sensors.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sensors.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sensors --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sensors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sensors/Sensors.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches