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.0009238/0.0009239, 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.257/1.257, allocations: 226.6 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.0007638/0.0007637, allocations: 93.88 kB / 295.1 MB, free: 10.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.184/0.184, allocations: 44.83 MB / 392 MB, free: 9.316 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002386/0.0002384, allocations: 12 kB / 464.7 MB, free: 49.76 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1023, allocations: 62.95 MB / 0.5153 GB, free: 2.762 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.002654/0.105, allocations: 2.242 MB / 0.5175 GB, free: 0.5 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.1987/0.3038, allocations: 0.7208 MB / 0.5182 GB, free: 9.852 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002352/0.304, allocations: 5.719 kB / 0.5182 GB, free: 9.852 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001863/0.3042, allocations: 50.17 kB / 0.5183 GB, free: 9.852 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002579/0.3045, allocations: 85.28 kB / 0.5184 GB, free: 9.848 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002924/0.3048, allocations: 75.91 kB / 0.5184 GB, free: 9.848 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004762/0.3053, allocations: 379.3 kB / 0.5188 GB, free: 9.762 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002344/0.3055, allocations: 108.9 kB / 0.5189 GB, free: 9.742 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002622/0.3058, allocations: 134.8 kB / 0.519 GB, free: 9.715 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001858/0.306, allocations: 142.8 kB / 0.5192 GB, free: 9.68 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.537e-05/0.3061, allocations: 17.81 kB / 0.5192 GB, free: 9.68 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.374e-05/0.3061, allocations: 17.81 kB / 0.5192 GB, free: 9.68 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.917e-05/0.3062, allocations: 57.5 kB / 0.5192 GB, free: 9.668 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 7.726e-05/0.3063, allocations: 91.14 kB / 0.5193 GB, free: 9.621 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004127/0.3067, allocations: 312.7 kB / 0.5196 GB, free: 9.59 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.3067, allocations: 0.7188 kB / 0.5196 GB, free: 9.59 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3067, allocations: 0 / 0.5196 GB, free: 9.59 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.3067, allocations: 1.344 kB / 0.5196 GB, free: 9.59 MB / 346.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.0009929/0.3077, allocations: 0.6115 MB / 0.5202 GB, free: 9.125 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.3078, allocations: 10.48 kB / 0.5202 GB, free: 9.125 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.981e-05/0.3079, allocations: 39.12 kB / 0.5203 GB, free: 9.105 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003146/0.3082, allocations: 272.2 kB / 0.5205 GB, free: 8.867 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.892e-05/0.3082, allocations: 22.03 kB / 0.5206 GB, free: 8.867 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.001e-05/0.3083, allocations: 36.19 kB / 0.5206 GB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007441/0.309, allocations: 361.4 kB / 0.5209 GB, free: 8.785 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.3091, allocations: 3.938 kB / 0.5209 GB, free: 8.781 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.35e-05/0.3091, allocations: 20.58 kB / 0.521 GB, free: 8.777 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.3091, allocations: 8.562 kB / 0.521 GB, free: 8.777 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006589/0.3098, allocations: 288.1 kB / 0.5212 GB, free: 8.766 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001921/0.3117, allocations: 1.354 MB / 0.5226 GB, free: 8 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004829/0.3122, allocations: 211.8 kB / 0.5228 GB, free: 7.891 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002198/0.3124, allocations: 90.36 kB / 0.5229 GB, free: 7.855 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.623e-05/0.3125, allocations: 6.359 kB / 0.5229 GB, free: 7.855 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.773e-05/0.3125, allocations: 36.89 kB / 0.5229 GB, free: 7.812 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.644e-06/0.3125, allocations: 1.375 kB / 0.5229 GB, free: 7.812 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007935/0.3133, allocations: 279 kB / 0.5232 GB, free: 7.754 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.439e-05/0.3134, allocations: 135.7 kB / 0.5233 GB, free: 7.594 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004004/0.3138, allocations: 324.1 kB / 0.5236 GB, free: 7.488 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.3138, allocations: 30.28 kB / 0.5236 GB, free: 7.457 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001734/0.314, allocations: 244.1 kB / 0.5239 GB, free: 7.297 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.098e-05/0.314, allocations: 48.48 kB / 0.5239 GB, free: 7.27 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.452e-05/0.314, allocations: 9.094 kB / 0.5239 GB, free: 7.266 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.945e-05/0.3141, allocations: 340.2 kB / 0.5242 GB, free: 6.953 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002562/0.3144, allocations: 89.89 kB / 0.5243 GB, free: 6.945 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002821/0.3147, allocations: 178.1 kB / 0.5245 GB, free: 6.836 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002729/0.315, allocations: 109.7 kB / 0.5246 GB, free: 6.828 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.315, allocations: 1 kB / 0.5246 GB, free: 6.828 MB / 346.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006401/0.3156, allocations: 329.4 kB / 0.5249 GB, free: 6.711 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.3157, allocations: 10.09 kB / 0.5249 GB, free: 6.707 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3157, allocations: 3.406 kB / 0.5249 GB, free: 6.707 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/0.3157, allocations: 4.5 kB / 0.5249 GB, free: 6.707 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004447/0.3162, allocations: 108.9 kB / 0.525 GB, free: 6.695 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.3162, allocations: 9.266 kB / 0.525 GB, free: 6.691 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002673/0.3164, allocations: 56.81 kB / 0.5251 GB, free: 6.664 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.331e-05/0.3165, allocations: 13.88 kB / 0.5251 GB, free: 6.664 MB / 346.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.0001172/0.3166, allocations: 145.7 kB / 0.5253 GB, free: 6.527 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.06e-05/0.3167, allocations: 33.73 kB / 0.5253 GB, free: 6.508 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.984e-05/0.3168, allocations: 35.98 kB / 0.5253 GB, free: 6.488 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.3168, allocations: 6.5 kB / 0.5253 GB, free: 6.484 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.3168, allocations: 1.766 kB / 0.5253 GB, free: 6.484 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.3168, allocations: 1.547 kB / 0.5253 GB, free: 6.484 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000673/0.3175, allocations: 0.5852 MB / 0.5259 GB, free: 5.988 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.3175, allocations: 1.344 kB / 0.5259 GB, free: 5.988 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002924/0.3178, allocations: 78.55 kB / 0.526 GB, free: 5.977 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.3178, allocations: 2.188 kB / 0.526 GB, free: 5.977 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.3178, allocations: 3.125 kB / 0.526 GB, free: 5.977 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.7e-06/0.3178, allocations: 2.75 kB / 0.526 GB, free: 5.977 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.3178, allocations: 10.23 kB / 0.526 GB, free: 5.969 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004974/0.3183, allocations: 415.5 kB / 0.5264 GB, free: 5.664 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.47e-05/0.3184, allocations: 117.6 kB / 0.5265 GB, free: 5.543 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.234e-05/0.3184, allocations: 2.719 kB / 0.5265 GB, free: 5.543 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002322/0.3187, allocations: 23.3 kB / 0.5265 GB, free: 5.539 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.002e-05/0.3187, allocations: 14.91 kB / 0.5265 GB, free: 5.535 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.237e-05/0.3188, allocations: 9 kB / 0.5266 GB, free: 5.531 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002136/0.319, allocations: 225.7 kB / 0.5268 GB, free: 5.406 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.319, allocations: 4 kB / 0.5268 GB, free: 5.402 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000384/0.3194, allocations: 67.38 kB / 0.5268 GB, free: 5.391 MB / 346.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 9.385e-05/0.3195, allocations: 99.97 kB / 0.5269 GB, free: 5.293 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005486/0.32, allocations: 217.9 kB / 0.5271 GB, free: 5.238 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.32, allocations: 0 / 0.5271 GB, free: 5.238 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002224/0.3203, allocations: 96.94 kB / 0.5272 GB, free: 5.211 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004162/0.3207, allocations: 29.64 kB / 0.5273 GB, free: 5.195 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008625/0.3216, allocations: 0.6829 MB / 0.5279 GB, free: 4.715 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002195/0.3218, allocations: 0.7726 MB / 0.5287 GB, free: 4.016 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.364e-05/0.3219, allocations: 24.44 kB / 0.5287 GB, free: 4.004 MB / 346.7 MB Notification: Performance of SimCode: time 5.61e-07/0.3219, allocations: 1.094 kB / 0.5287 GB, free: 4.004 MB / 346.7 MB Notification: Performance of Templates: time 0.005446/0.3273, allocations: 3.081 MB / 0.5317 GB, free: 3.684 MB / 346.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/jenkins/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