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.0009322/0.0009323, allocations: 200.9 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 226.5 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007032/0.0007032, allocations: 95.08 kB / 295.1 MB, free: 10.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1883/0.1883, allocations: 44.82 MB / 392 MB, free: 9.324 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002642/0.0002643, allocations: 15.97 kB / 464.7 MB, free: 49.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1043, allocations: 62.95 MB / 0.5153 GB, free: 2.754 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sensors): time 0.002166/0.1065, allocations: 1.58 MB / 0.5169 GB, free: 1.156 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.000833/0.1074, allocations: 0.5535 MB / 0.5174 GB, free: 0.5977 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.313e-05/0.1075, allocations: 4 kB / 0.5174 GB, free: 0.5938 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.1076, allocations: 23.84 kB / 0.5174 GB, free: 0.5703 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001308/0.1077, allocations: 27.77 kB / 0.5175 GB, free: 0.543 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001556/0.1079, allocations: 27.97 kB / 0.5175 GB, free: 0.5156 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001508/0.1081, allocations: 135.5 kB / 0.5176 GB, free: 392 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.1082, allocations: 49.72 kB / 0.5177 GB, free: 336 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001543/0.1083, allocations: 59.78 kB / 0.5177 GB, free: 276 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.982e-05/0.1084, allocations: 51.77 kB / 0.5178 GB, free: 224 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.091e-05/0.1085, allocations: 8 kB / 0.5178 GB, free: 216 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.931e-05/0.1085, allocations: 4 kB / 0.5178 GB, free: 212 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.217e-05/0.1085, allocations: 23.92 kB / 0.5178 GB, free: 188 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.882e-05/0.1086, allocations: 45.64 kB / 0.5179 GB, free: 136 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001205/0.1087, allocations: 116 kB / 0.518 GB, free: 20 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.165e-06/0.1087, allocations: 4 kB / 0.518 GB, free: 16 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1087, allocations: 3.938 kB / 0.518 GB, free: 12 kB / 346.7 MB Notification: Performance of Transformations before backend: time 8.256e-06/0.1087, allocations: 0 / 0.518 GB, free: 12 kB / 346.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.1986/0.3074, allocations: 419.1 kB / 0.5184 GB, free: 11.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.3074, allocations: 9.719 kB / 0.5184 GB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.157e-05/0.3075, allocations: 15.91 kB / 0.5184 GB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001763/0.3077, allocations: 208.2 kB / 0.5186 GB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.86e-05/0.3077, allocations: 10.48 kB / 0.5186 GB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.969e-05/0.3077, allocations: 13.19 kB / 0.5186 GB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003727/0.3081, allocations: 145.1 kB / 0.5188 GB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.3081, allocations: 0 / 0.5188 GB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.812e-05/0.3081, allocations: 5.094 kB / 0.5188 GB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.3082, allocations: 3.719 kB / 0.5188 GB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003211/0.3085, allocations: 114.9 kB / 0.5189 GB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009981/0.3095, allocations: 0.6201 MB / 0.5195 GB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002443/0.3097, allocations: 78.55 kB / 0.5196 GB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001088/0.3099, allocations: 34.44 kB / 0.5196 GB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.792e-05/0.3099, allocations: 1.625 kB / 0.5196 GB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.84e-05/0.3099, allocations: 39.78 kB / 0.5196 GB, free: 11.04 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.513e-06/0.3099, allocations: 0 / 0.5196 GB, free: 11.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004183/0.3103, allocations: 122.4 kB / 0.5197 GB, free: 11 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.496e-05/0.3104, allocations: 56.58 kB / 0.5198 GB, free: 10.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.3105, allocations: 155.3 kB / 0.5199 GB, free: 10.82 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.777e-06/0.3105, allocations: 27.78 kB / 0.52 GB, free: 10.79 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.569e-05/0.3106, allocations: 135.1 kB / 0.5201 GB, free: 10.68 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.438e-05/0.3106, allocations: 23.88 kB / 0.5201 GB, free: 10.67 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.181e-06/0.3106, allocations: 1.812 kB / 0.5201 GB, free: 10.67 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.957e-05/0.3107, allocations: 321 kB / 0.5204 GB, free: 10.36 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001187/0.3108, allocations: 34.16 kB / 0.5205 GB, free: 10.36 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001235/0.3109, allocations: 73.31 kB / 0.5205 GB, free: 10.31 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001209/0.3111, allocations: 42.16 kB / 0.5206 GB, free: 10.3 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.3111, allocations: 0 / 0.5206 GB, free: 10.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002974/0.3114, allocations: 133.9 kB / 0.5207 GB, free: 10.26 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.3114, allocations: 10.12 kB / 0.5207 GB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.3114, allocations: 5.094 kB / 0.5207 GB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.3114, allocations: 6.719 kB / 0.5207 GB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/0.3116, allocations: 28.09 kB / 0.5207 GB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.3116, allocations: 5.719 kB / 0.5208 GB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.857e-05/0.3117, allocations: 17.94 kB / 0.5208 GB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.869e-06/0.3117, allocations: 3.969 kB / 0.5208 GB, free: 10.25 MB / 346.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 8.985e-05/0.3118, allocations: 127.2 kB / 0.5209 GB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.802e-05/0.3118, allocations: 8.062 kB / 0.5209 GB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.744e-05/0.3119, allocations: 12.19 kB / 0.5209 GB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.3119, allocations: 1.594 kB / 0.5209 GB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.3119, allocations: 1.031 kB / 0.5209 GB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3119, allocations: 8.594 kB / 0.5209 GB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001853/0.3121, allocations: 208.9 kB / 0.5211 GB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.3121, allocations: 2.484 kB / 0.5211 GB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.84e-05/0.3122, allocations: 22.92 kB / 0.5211 GB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.3122, allocations: 0.7188 kB / 0.5212 GB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.3122, allocations: 1.531 kB / 0.5212 GB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.3122, allocations: 0.5625 kB / 0.5212 GB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3122, allocations: 0.875 kB / 0.5212 GB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002529/0.3125, allocations: 202.9 kB / 0.5213 GB, free: 9.77 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.365e-05/0.3125, allocations: 84.31 kB / 0.5214 GB, free: 9.672 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.634e-05/0.3126, allocations: 1.906 kB / 0.5214 GB, free: 9.672 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.933e-05/0.3127, allocations: 9.969 kB / 0.5214 GB, free: 9.672 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.461e-05/0.3127, allocations: 5.188 kB / 0.5214 GB, free: 9.672 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.649e-06/0.3127, allocations: 0.5625 kB / 0.5214 GB, free: 9.672 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.886e-05/0.3128, allocations: 111.8 kB / 0.5216 GB, free: 9.598 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3128, allocations: 4 kB / 0.5216 GB, free: 9.594 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002322/0.313, allocations: 24.41 kB / 0.5216 GB, free: 9.59 MB / 346.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 8.016e-05/0.3131, allocations: 94.03 kB / 0.5217 GB, free: 9.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002654/0.3134, allocations: 84.75 kB / 0.5217 GB, free: 9.492 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3134, allocations: 0 / 0.5217 GB, free: 9.492 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001004/0.3135, allocations: 32.97 kB / 0.5218 GB, free: 9.492 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002538/0.3138, allocations: 13.03 kB / 0.5218 GB, free: 9.488 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005519/0.3143, allocations: 360 kB / 0.5221 GB, free: 9.246 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001402/0.3145, allocations: 0.7078 MB / 0.5228 GB, free: 8.547 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.618e-05/0.3145, allocations: 12.38 kB / 0.5228 GB, free: 8.539 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3145, allocations: 0 / 0.5228 GB, free: 8.539 MB / 346.7 MB Notification: Performance of Templates: time 0.002757/0.3173, allocations: 1.231 MB / 0.524 GB, free: 8.445 MB / 346.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