Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sources.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.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sources") translateModel(ModelicaTest.Magnetic.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001254/0.001254, allocations: 193.9 kB / 16.78 MB, free: 4.918 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.265/1.265, allocations: 226.5 MB / 244.1 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007325/0.0007326, allocations: 110.9 kB / 296.1 MB, free: 6.879 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3324/0.3324, allocations: 44.83 MB / 393 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000284/0.000284, allocations: 8 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3206, allocations: 62.96 MB / 0.5165 GB, free: 37.02 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1157/0.4364, allocations: 90.39 MB / 0.6047 GB, free: 14.98 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002713/0.4367, allocations: 71.97 kB / 0.6048 GB, free: 14.91 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01863/0.4554, allocations: 7.257 MB / 0.6119 GB, free: 7.621 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4554, allocations: 0 / 0.6119 GB, free: 7.621 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.4555, allocations: 8 kB / 0.6119 GB, free: 7.613 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.0009374/0.4564, allocations: 0.616 MB / 0.6125 GB, free: 6.941 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.4565, allocations: 16.02 kB / 0.6125 GB, free: 6.926 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.384e-05/0.4565, allocations: 44.47 kB / 0.6126 GB, free: 6.883 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.4569, allocations: 277.6 kB / 0.6128 GB, free: 6.57 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.602e-05/0.4569, allocations: 29.38 kB / 0.6129 GB, free: 6.543 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.559e-05/0.457, allocations: 36.36 kB / 0.6129 GB, free: 6.508 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006394/0.4576, allocations: 370.5 kB / 0.6133 GB, free: 6.125 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.4577, allocations: 0 / 0.6133 GB, free: 6.125 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.283e-05/0.4577, allocations: 16 kB / 0.6133 GB, free: 6.109 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.4577, allocations: 8 kB / 0.6133 GB, free: 6.102 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005909/0.4583, allocations: 283.8 kB / 0.6135 GB, free: 5.824 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001676/0.46, allocations: 1.295 MB / 0.6148 GB, free: 4.441 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004413/0.4605, allocations: 202.5 kB / 0.615 GB, free: 4.207 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002003/0.4607, allocations: 91.62 kB / 0.6151 GB, free: 4.105 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.772e-05/0.4607, allocations: 4 kB / 0.6151 GB, free: 4.102 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.4607, allocations: 46.48 kB / 0.6151 GB, free: 4.047 MB / 426.7 MB Notification: Performance of pre-optimization done (n=15): time 1.432e-06/0.4608, allocations: 4 kB / 0.6151 GB, free: 4.043 MB / 426.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007618/0.4615, allocations: 273.1 kB / 0.6154 GB, free: 3.77 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.057e-05/0.4616, allocations: 132.5 kB / 0.6155 GB, free: 3.609 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003184/0.4619, allocations: 328.4 kB / 0.6158 GB, free: 3.285 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.4619, allocations: 29.83 kB / 0.6159 GB, free: 3.25 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.4621, allocations: 231.7 kB / 0.6161 GB, free: 3.02 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.876e-05/0.4621, allocations: 59.19 kB / 0.6161 GB, free: 2.961 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.332e-05/0.4621, allocations: 4 kB / 0.6162 GB, free: 2.957 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.4623, allocations: 342.8 kB / 0.6165 GB, free: 2.613 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002251/0.4625, allocations: 88.5 kB / 0.6166 GB, free: 2.523 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002851/0.4628, allocations: 181 kB / 0.6167 GB, free: 2.309 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005357/0.4633, allocations: 275.4 kB / 0.617 GB, free: 2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.4633, allocations: 4 kB / 0.617 GB, free: 1.996 MB / 426.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006209/0.464, allocations: 329 kB / 0.6173 GB, free: 1.668 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.464, allocations: 12.06 kB / 0.6173 GB, free: 1.656 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.464, allocations: 0 / 0.6173 GB, free: 1.656 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.464, allocations: 4.281 kB / 0.6173 GB, free: 1.652 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003172/0.4644, allocations: 83.89 kB / 0.6174 GB, free: 1.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.4644, allocations: 4 kB / 0.6174 GB, free: 1.566 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002635/0.4646, allocations: 59.5 kB / 0.6175 GB, free: 1.508 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.265e-05/0.4647, allocations: 16 kB / 0.6175 GB, free: 1.492 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (34): * Single equations (assignments): 34 * 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 0.0001397/0.4648, allocations: 149.7 kB / 0.6176 GB, free: 1.336 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.536e-05/0.4649, allocations: 31.7 kB / 0.6177 GB, free: 1.305 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.633e-05/0.465, allocations: 30.41 kB / 0.6177 GB, free: 1.273 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.465, allocations: 4 kB / 0.6177 GB, free: 1.27 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.465, allocations: 0 / 0.6177 GB, free: 1.27 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.465, allocations: 0 / 0.6177 GB, free: 1.27 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008483/0.4659, allocations: 0.5992 MB / 0.6183 GB, free: 0.5977 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.4659, allocations: 3.984 kB / 0.6183 GB, free: 0.5938 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001901/0.4661, allocations: 43.91 kB / 0.6183 GB, free: 0.5508 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.4661, allocations: 8.156 kB / 0.6183 GB, free: 0.543 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.4661, allocations: 4 kB / 0.6183 GB, free: 0.5391 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.4662, allocations: 3.938 kB / 0.6183 GB, free: 0.5352 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.4662, allocations: 7.938 kB / 0.6183 GB, free: 0.5273 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005152/0.4667, allocations: 410.7 kB / 0.6187 GB, free: 96 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.969e-05/0.4668, allocations: 108.8 kB / 0.6188 GB, free: 15.97 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.486e-05/0.4668, allocations: 8 kB / 0.6188 GB, free: 15.96 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002241/0.467, allocations: 23.91 kB / 0.6189 GB, free: 15.94 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.674e-05/0.4671, allocations: 23.92 kB / 0.6189 GB, free: 15.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.4671, allocations: 4 kB / 0.6189 GB, free: 15.91 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002175/0.4674, allocations: 223.1 kB / 0.6191 GB, free: 15.69 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4674, allocations: 0 / 0.6191 GB, free: 15.69 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.000379/0.4678, allocations: 75.75 kB / 0.6192 GB, free: 15.62 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (15): * Single equations (assignments): 15 * 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 0.0001302/0.4679, allocations: 99.23 kB / 0.6193 GB, free: 15.51 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0005223/0.4684, allocations: 217.7 kB / 0.6195 GB, free: 15.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.4684, allocations: 4 kB / 0.6195 GB, free: 15.29 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002248/0.4687, allocations: 88.39 kB / 0.6196 GB, free: 15.21 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004756/0.4691, allocations: 37.31 kB / 0.6196 GB, free: 15.17 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009074/0.4701, allocations: 0.68 MB / 0.6203 GB, free: 14.45 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000289/0.4704, allocations: 0.7716 MB / 0.621 GB, free: 13.65 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.843e-05/0.4705, allocations: 27.38 kB / 0.6211 GB, free: 13.62 MB / 442.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4705, allocations: 0 / 0.6211 GB, free: 13.62 MB / 442.7 MB Notification: Performance of Templates: time 0.004385/0.4748, allocations: 3.122 MB / 0.6241 GB, free: 10.51 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sources.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sources.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sources --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches