Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001569/0.001569, allocations: 121.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001982/0.001982, allocations: 207.8 kB / 18.74 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2227/0.2227, allocations: 46.09 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 75.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.3001, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.VariableComponents): time 0.002678/0.3028, allocations: 1.734 MB / 0.5322 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001811/0.303, allocations: 77.92 kB / 0.5323 GB, free: 12 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.069e-05/0.303, allocations: 4 kB / 0.5323 GB, free: 12 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.697e-05/0.3031, allocations: 15.36 kB / 0.5323 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.903e-05/0.3032, allocations: 23.77 kB / 0.5323 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001019/0.3033, allocations: 27.66 kB / 0.5323 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000142/0.3035, allocations: 113.7 kB / 0.5324 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001625/0.3036, allocations: 46.62 kB / 0.5325 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.375e-05/0.3037, allocations: 39.08 kB / 0.5325 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.752e-05/0.3038, allocations: 60.5 kB / 0.5326 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.337e-05/0.3038, allocations: 11.41 kB / 0.5326 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.823e-05/0.3038, allocations: 10.56 kB / 0.5326 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.782e-05/0.3039, allocations: 22.89 kB / 0.5326 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.582e-05/0.3039, allocations: 62.25 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00015/0.3041, allocations: 119 kB / 0.5328 GB, free: 11.62 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3041, allocations: 1.156 kB / 0.5328 GB, free: 11.62 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3041, allocations: 0 / 0.5328 GB, free: 11.62 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.259e-06/0.3041, allocations: 0 / 0.5328 GB, free: 11.62 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0005844/0.3047, allocations: 416.7 kB / 0.5332 GB, free: 11.21 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.3048, allocations: 9.5 kB / 0.5332 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.344e-05/0.3048, allocations: 46.64 kB / 0.5332 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.949e-05/0.3048, allocations: 13.94 kB / 0.5332 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.305, allocations: 172.7 kB / 0.5334 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/0.305, allocations: 7.625 kB / 0.5334 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.745e-05/0.305, allocations: 14.86 kB / 0.5334 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003453/0.3054, allocations: 130.4 kB / 0.5336 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.3054, allocations: 5.375 kB / 0.5336 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.595e-05/0.3054, allocations: 4 kB / 0.5336 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.463e-06/0.3054, allocations: 3.125 kB / 0.5336 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003643/0.3058, allocations: 104.6 kB / 0.5337 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007087/0.3065, allocations: 472.8 kB / 0.5341 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002454/0.3068, allocations: 85.66 kB / 0.5342 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002404/0.307, allocations: 69.92 kB / 0.5343 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.502e-05/0.307, allocations: 0 / 0.5343 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.476e-05/0.3071, allocations: 39.88 kB / 0.5343 GB, free: 10.21 MB / 398.1 MB Notification: Performance of pre-optimization done (n=6): time 9.71e-07/0.3071, allocations: 0 / 0.5343 GB, free: 10.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=6): time 0.0008624/0.3079, allocations: 268.6 kB / 0.5346 GB, free: 10 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.308, allocations: 52.78 kB / 0.5346 GB, free: 9.938 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.3081, allocations: 117 kB / 0.5347 GB, free: 9.828 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.3081, allocations: 27.08 kB / 0.5348 GB, free: 9.797 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.451e-05/0.3082, allocations: 108.2 kB / 0.5349 GB, free: 9.688 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.921e-05/0.3082, allocations: 18.48 kB / 0.5349 GB, free: 9.672 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.287e-05/0.3083, allocations: 27.12 kB / 0.5349 GB, free: 9.645 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.3084, allocations: 320.2 kB / 0.5352 GB, free: 9.324 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001642/0.3086, allocations: 36.59 kB / 0.5352 GB, free: 9.309 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001663/0.3087, allocations: 52.53 kB / 0.5353 GB, free: 9.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003249/0.3091, allocations: 106.4 kB / 0.5354 GB, free: 9.199 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3091, allocations: 0 / 0.5354 GB, free: 9.199 MB / 398.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004238/0.3095, allocations: 142.9 kB / 0.5355 GB, free: 9.109 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.3095, allocations: 5.5 kB / 0.5355 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.3095, allocations: 320 / 0.5355 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001386/0.3097, allocations: 31.72 kB / 0.5356 GB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.3098, allocations: 16.36 kB / 0.5356 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001/0.3108, allocations: 1.409 MB / 0.537 GB, free: 7.621 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.3109, allocations: 15.89 kB / 0.537 GB, free: 7.613 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.916e-06/0.311, allocations: 10.28 kB / 0.537 GB, free: 7.605 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.75e-05/0.3111, allocations: 122.3 kB / 0.5371 GB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.074e-05/0.3111, allocations: 14.28 kB / 0.5371 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.066e-05/0.3111, allocations: 10.81 kB / 0.5371 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.3111, allocations: 1.219 kB / 0.5371 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.3111, allocations: 0 / 0.5371 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.3111, allocations: 1.469 kB / 0.5371 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006834/0.3118, allocations: 426.7 kB / 0.5375 GB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3118, allocations: 0 / 0.5375 GB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.784e-05/0.312, allocations: 18.41 kB / 0.5375 GB, free: 7.047 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.907e-05/0.312, allocations: 19.89 kB / 0.5376 GB, free: 7.035 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.3121, allocations: 4.984 kB / 0.5376 GB, free: 7.031 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009231/0.313, allocations: 1.4 MB / 0.5389 GB, free: 5.574 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.313, allocations: 4.062 kB / 0.5389 GB, free: 5.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004618/0.3135, allocations: 250.3 kB / 0.5392 GB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.307e-05/0.3135, allocations: 87.7 kB / 0.5393 GB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.059e-05/0.3136, allocations: 5.062 kB / 0.5393 GB, free: 5.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.3137, allocations: 11.8 kB / 0.5393 GB, free: 5.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.454e-05/0.3137, allocations: 11.55 kB / 0.5393 GB, free: 5.242 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.471e-06/0.3137, allocations: 1.562 kB / 0.5393 GB, free: 5.242 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7e-05/0.3138, allocations: 105.8 kB / 0.5394 GB, free: 5.148 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3138, allocations: 0 / 0.5394 GB, free: 5.148 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002692/0.3141, allocations: 23.28 kB / 0.5394 GB, free: 5.145 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007131/0.3148, allocations: 0.767 MB / 0.5402 GB, free: 4.414 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00052/0.3153, allocations: 197.5 kB / 0.5404 GB, free: 4.262 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3154, allocations: 0 / 0.5404 GB, free: 4.262 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000273/0.3156, allocations: 162.4 kB / 0.5405 GB, free: 4.121 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003191/0.316, allocations: 19.61 kB / 0.5405 GB, free: 4.105 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002055/0.318, allocations: 1.607 MB / 0.5421 GB, free: 2.645 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002328/0.3183, allocations: 0.7009 MB / 0.5428 GB, free: 1.934 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.512e-05/0.3183, allocations: 6.594 kB / 0.5428 GB, free: 1.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.425e-05/0.3184, allocations: 29.77 kB / 0.5428 GB, free: 1.902 MB / 398.1 MB Notification: Performance of SimCode: time 2.414e-06/0.3184, allocations: 0 / 0.5428 GB, free: 1.902 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0217/0.3401, allocations: 2.418 MB / 0.5452 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.454/9.794, allocations: 7.891 kB / 0.5452 GB, free: 0.6172 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_VariableComponents_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_VariableComponents.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/VariableComponents/VariableComponents.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,reluctance.V_m,reluctance.Phi,permeance.V_m,permeance.Phi Variables in the result:ground.port.Phi,ground.port.V_m,magFluxSource.Phi,magFluxSource.V_m,magFluxSource.port_n.Phi,magFluxSource.port_n.V_m,magFluxSource.port_p.Phi,magFluxSource.port_p.V_m,permeance.G_m,permeance.Phi,permeance.V_m,permeance.port_n.Phi,permeance.port_n.V_m,permeance.port_p.Phi,permeance.port_p.V_m,rampPermeance.duration,rampPermeance.height,rampPermeance.offset,rampPermeance.startTime,rampPermeance.y,rampReluctance.duration,rampReluctance.height,rampReluctance.offset,rampReluctance.startTime,rampReluctance.y,reluctance.Phi,reluctance.R_m,reluctance.V_m,reluctance.port_n.Phi,reluctance.port_n.V_m,reluctance.port_p.Phi,reluctance.port_p.V_m,time