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.001687/0.001687, 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.306/1.306, allocations: 226.6 MB / 243.4 MB, free: 8.105 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007149/0.000715, allocations: 91.36 kB / 295.5 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.314/0.314, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002761/0.0002763, allocations: 8 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3052/0.3054, allocations: 62.96 MB / 0.5159 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.002284/0.3078, allocations: 2.247 MB / 0.5181 GB, free: 35.43 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009562/0.3088, allocations: 0.7325 MB / 0.5188 GB, free: 34.89 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.3089, allocations: 5.906 kB / 0.5188 GB, free: 34.89 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001486/0.3091, allocations: 45.8 kB / 0.5188 GB, free: 34.87 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001939/0.3093, allocations: 89.09 kB / 0.5189 GB, free: 34.82 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002149/0.3095, allocations: 77.02 kB / 0.519 GB, free: 34.77 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002749/0.3098, allocations: 379.3 kB / 0.5194 GB, free: 34.58 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001814/0.31, allocations: 131.4 kB / 0.5195 GB, free: 34.52 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002012/0.3102, allocations: 130 kB / 0.5196 GB, free: 34.46 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001206/0.3103, allocations: 142 kB / 0.5197 GB, free: 34.39 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.571e-05/0.3104, allocations: 17.47 kB / 0.5198 GB, free: 34.39 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.024e-05/0.3104, allocations: 17.62 kB / 0.5198 GB, free: 34.39 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.84e-05/0.3104, allocations: 61.08 kB / 0.5198 GB, free: 34.36 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.3106, allocations: 180.9 kB / 0.52 GB, free: 34.24 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001952/0.3108, allocations: 309.6 kB / 0.5203 GB, free: 34.16 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3108, allocations: 3.062 kB / 0.5203 GB, free: 34.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3108, allocations: 0 / 0.5203 GB, free: 34.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.63e-06/0.3108, allocations: 0 / 0.5203 GB, free: 34.16 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.0007535/0.3115, allocations: 0.6151 MB / 0.5209 GB, free: 33.67 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/0.3116, allocations: 9.406 kB / 0.5209 GB, free: 33.67 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.578e-05/0.3116, allocations: 39.59 kB / 0.5209 GB, free: 33.65 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002137/0.3119, allocations: 271.9 kB / 0.5212 GB, free: 33.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.3119, allocations: 28.09 kB / 0.5212 GB, free: 33.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.589e-05/0.3119, allocations: 28.22 kB / 0.5213 GB, free: 33.37 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005382/0.3125, allocations: 376 kB / 0.5216 GB, free: 33.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.3125, allocations: 3.375 kB / 0.5216 GB, free: 33.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.766e-05/0.3125, allocations: 10.97 kB / 0.5216 GB, free: 33.17 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.3125, allocations: 9.844 kB / 0.5216 GB, free: 33.17 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005771/0.3131, allocations: 286.7 kB / 0.5219 GB, free: 33.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001588/0.3147, allocations: 1.368 MB / 0.5233 GB, free: 32.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004004/0.3151, allocations: 199.3 kB / 0.5234 GB, free: 31.96 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001832/0.3153, allocations: 96.88 kB / 0.5235 GB, free: 31.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.295e-05/0.3154, allocations: 6.906 kB / 0.5235 GB, free: 31.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.809e-05/0.3154, allocations: 38.5 kB / 0.5236 GB, free: 31.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=15): time 1.352e-06/0.3154, allocations: 0 / 0.5236 GB, free: 31.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006924/0.3161, allocations: 294 kB / 0.5239 GB, free: 31.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.643e-05/0.3162, allocations: 131.4 kB / 0.524 GB, free: 31.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002662/0.3164, allocations: 319.5 kB / 0.5243 GB, free: 31.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.604e-05/0.3165, allocations: 32.55 kB / 0.5243 GB, free: 31.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.691e-05/0.3166, allocations: 243.3 kB / 0.5245 GB, free: 31.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.896e-05/0.3166, allocations: 50.03 kB / 0.5246 GB, free: 31.14 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.267e-05/0.3166, allocations: 6.719 kB / 0.5246 GB, free: 31.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.275e-05/0.3167, allocations: 345.7 kB / 0.5249 GB, free: 30.81 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002169/0.3169, allocations: 88.67 kB / 0.525 GB, free: 30.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002265/0.3171, allocations: 178.6 kB / 0.5252 GB, free: 30.65 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004076/0.3176, allocations: 272.7 kB / 0.5254 GB, free: 30.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3176, allocations: 0 / 0.5254 GB, free: 30.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005541/0.3181, allocations: 331.6 kB / 0.5258 GB, free: 30.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.3182, allocations: 5.188 kB / 0.5258 GB, free: 30.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.3182, allocations: 2.531 kB / 0.5258 GB, free: 30.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.3182, allocations: 5.344 kB / 0.5258 GB, free: 30.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003628/0.3186, allocations: 105.8 kB / 0.5259 GB, free: 30.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.3186, allocations: 4.938 kB / 0.5259 GB, free: 30.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002264/0.3188, allocations: 62.38 kB / 0.5259 GB, free: 30.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.826e-05/0.3188, allocations: 10.88 kB / 0.526 GB, free: 30.3 MB / 378.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.0001011/0.3189, allocations: 147.6 kB / 0.5261 GB, free: 30.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.577e-05/0.319, allocations: 29.72 kB / 0.5261 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.453e-05/0.3191, allocations: 36.14 kB / 0.5262 GB, free: 30.12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.3191, allocations: 0 / 0.5262 GB, free: 30.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3191, allocations: 6.906 kB / 0.5262 GB, free: 30.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3191, allocations: 0 / 0.5262 GB, free: 30.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005753/0.3197, allocations: 0.5953 MB / 0.5267 GB, free: 29.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3197, allocations: 0 / 0.5267 GB, free: 29.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002593/0.32, allocations: 68.06 kB / 0.5268 GB, free: 29.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.32, allocations: 2.844 kB / 0.5268 GB, free: 29.61 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.32, allocations: 11.47 kB / 0.5268 GB, free: 29.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.32, allocations: 6.391 kB / 0.5268 GB, free: 29.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.32, allocations: 6.531 kB / 0.5268 GB, free: 29.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004304/0.3205, allocations: 414.7 kB / 0.5272 GB, free: 29.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.938e-05/0.3205, allocations: 106.6 kB / 0.5273 GB, free: 29.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.249e-05/0.3206, allocations: 6.5 kB / 0.5273 GB, free: 29.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002124/0.3208, allocations: 28.12 kB / 0.5274 GB, free: 29.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.761e-05/0.3208, allocations: 17.8 kB / 0.5274 GB, free: 29.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/0.3209, allocations: 16.66 kB / 0.5274 GB, free: 29.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001837/0.321, allocations: 219 kB / 0.5276 GB, free: 29.03 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.321, allocations: 0 / 0.5276 GB, free: 29.03 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003485/0.3214, allocations: 76.62 kB / 0.5277 GB, free: 29.01 MB / 378.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.682e-05/0.3215, allocations: 103 kB / 0.5278 GB, free: 28.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004686/0.322, allocations: 209.9 kB / 0.528 GB, free: 28.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.322, allocations: 2.875 kB / 0.528 GB, free: 28.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000201/0.3222, allocations: 95.86 kB / 0.5281 GB, free: 28.83 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004362/0.3226, allocations: 22.25 kB / 0.5281 GB, free: 28.81 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007269/0.3234, allocations: 0.6803 MB / 0.5288 GB, free: 28.33 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001758/0.3236, allocations: 0.7732 MB / 0.5295 GB, free: 27.63 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.044e-05/0.3236, allocations: 22.53 kB / 0.5295 GB, free: 27.63 MB / 378.7 MB Notification: Performance of SimCode: time 3.6e-07/0.3236, allocations: 0 / 0.5295 GB, free: 27.63 MB / 378.7 MB Notification: Performance of Templates: time 0.003829/0.3275, allocations: 3.074 MB / 0.5325 GB, free: 27.3 MB / 378.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