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.001178/0.001178, allocations: 117.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001415/0.001415, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2191/0.2191, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002259/0.002259, allocations: 75.88 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2994/0.3017, allocations: 62.43 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.VariableComponents): time 0.00281/0.3045, allocations: 1.724 MB / 0.5322 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001604/0.3047, allocations: 87.34 kB / 0.5323 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.83e-05/0.3048, allocations: 1.156 kB / 0.5323 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.945e-05/0.3049, allocations: 14.09 kB / 0.5323 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.84e-05/0.3049, allocations: 26.95 kB / 0.5323 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.927e-05/0.305, allocations: 25.84 kB / 0.5323 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001299/0.3052, allocations: 106.9 kB / 0.5324 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001615/0.3053, allocations: 53.81 kB / 0.5325 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.558e-05/0.3054, allocations: 44.42 kB / 0.5325 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.538e-05/0.3055, allocations: 60.31 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.058e-05/0.3055, allocations: 10.97 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.621e-05/0.3055, allocations: 11.72 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.621e-05/0.3056, allocations: 21.83 kB / 0.5326 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.505e-05/0.3056, allocations: 54.28 kB / 0.5327 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001331/0.3058, allocations: 118.9 kB / 0.5328 GB, free: 11.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3058, allocations: 1.75 kB / 0.5328 GB, free: 11.61 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3058, allocations: 0 / 0.5328 GB, free: 11.61 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.3058, allocations: 0 / 0.5328 GB, free: 11.61 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.0005883/0.3064, allocations: 417.5 kB / 0.5332 GB, free: 11.19 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.3064, allocations: 8.5 kB / 0.5332 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.247e-05/0.3065, allocations: 44.39 kB / 0.5332 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.338e-05/0.3065, allocations: 19.91 kB / 0.5332 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.3067, allocations: 171.3 kB / 0.5334 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.46e-05/0.3067, allocations: 5.375 kB / 0.5334 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.667e-05/0.3067, allocations: 18.31 kB / 0.5334 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003129/0.307, allocations: 123.9 kB / 0.5336 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.307, allocations: 3.938 kB / 0.5336 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.3071, allocations: 1.375 kB / 0.5336 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.3071, allocations: 2.75 kB / 0.5336 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000329/0.3074, allocations: 112.1 kB / 0.5337 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007037/0.3081, allocations: 473.6 kB / 0.5341 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002262/0.3084, allocations: 85.02 kB / 0.5342 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002186/0.3086, allocations: 69.92 kB / 0.5343 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.186e-05/0.3086, allocations: 1.375 kB / 0.5343 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.3086, allocations: 34.5 kB / 0.5343 GB, free: 10.19 MB / 398.1 MB Notification: Performance of pre-optimization done (n=6): time 1.433e-06/0.3086, allocations: 0 / 0.5343 GB, free: 10.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007687/0.3094, allocations: 268.6 kB / 0.5346 GB, free: 9.984 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.776e-05/0.3095, allocations: 52.78 kB / 0.5346 GB, free: 9.922 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.86e-05/0.3096, allocations: 117 kB / 0.5347 GB, free: 9.812 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.423e-05/0.3096, allocations: 30.67 kB / 0.5347 GB, free: 9.777 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.602e-05/0.3097, allocations: 109.5 kB / 0.5349 GB, free: 9.668 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.038e-05/0.3097, allocations: 22.23 kB / 0.5349 GB, free: 9.648 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.998e-05/0.3097, allocations: 22.38 kB / 0.5349 GB, free: 9.625 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.3098, allocations: 320.3 kB / 0.5352 GB, free: 9.305 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.31, allocations: 32.62 kB / 0.5352 GB, free: 9.293 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000155/0.3101, allocations: 64.44 kB / 0.5353 GB, free: 9.242 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002919/0.3104, allocations: 97.94 kB / 0.5354 GB, free: 9.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.3105, allocations: 5.031 kB / 0.5354 GB, free: 9.176 MB / 398.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004011/0.3109, allocations: 145.8 kB / 0.5355 GB, free: 9.082 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.3109, allocations: 5.812 kB / 0.5355 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.3109, allocations: 1.094 kB / 0.5355 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001335/0.311, allocations: 23.62 kB / 0.5356 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.3112, allocations: 20.67 kB / 0.5356 GB, free: 9.059 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001003/0.3122, allocations: 1.4 MB / 0.5369 GB, free: 7.605 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.3123, allocations: 24.03 kB / 0.537 GB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.3123, allocations: 2.281 kB / 0.537 GB, free: 7.59 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.826e-05/0.3124, allocations: 123 kB / 0.5371 GB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.386e-05/0.3125, allocations: 19.36 kB / 0.5371 GB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.164e-05/0.3125, allocations: 9.719 kB / 0.5371 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3125, allocations: 0 / 0.5371 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.3125, allocations: 1.406 kB / 0.5371 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.3125, allocations: 4 kB / 0.5371 GB, free: 7.438 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006318/0.3131, allocations: 423.5 kB / 0.5375 GB, free: 7.035 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.3132, allocations: 0 / 0.5375 GB, free: 7.035 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.528e-05/0.3133, allocations: 18.97 kB / 0.5375 GB, free: 7.027 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.127e-05/0.3133, allocations: 31.81 kB / 0.5376 GB, free: 7.004 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.3134, allocations: 1.375 kB / 0.5376 GB, free: 7.004 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009385/0.3143, allocations: 1.399 MB / 0.5389 GB, free: 5.547 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3143, allocations: 1.375 kB / 0.5389 GB, free: 5.547 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004428/0.3148, allocations: 242.2 kB / 0.5392 GB, free: 5.344 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.155e-05/0.3148, allocations: 87.23 kB / 0.5393 GB, free: 5.242 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.171e-05/0.3148, allocations: 1.125 kB / 0.5393 GB, free: 5.242 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001209/0.315, allocations: 14.61 kB / 0.5393 GB, free: 5.234 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.359e-05/0.315, allocations: 11.44 kB / 0.5393 GB, free: 5.227 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.315, allocations: 6.203 kB / 0.5393 GB, free: 5.223 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.354e-05/0.3151, allocations: 101 kB / 0.5394 GB, free: 5.133 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3151, allocations: 0 / 0.5394 GB, free: 5.133 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000265/0.3154, allocations: 19.25 kB / 0.5394 GB, free: 5.133 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.0007067/0.3161, allocations: 0.7749 MB / 0.5402 GB, free: 4.398 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004868/0.3166, allocations: 198.1 kB / 0.5403 GB, free: 4.246 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.175e-06/0.3166, allocations: 0 / 0.5403 GB, free: 4.246 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000253/0.3169, allocations: 170.5 kB / 0.5405 GB, free: 4.098 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003139/0.3172, allocations: 20.8 kB / 0.5405 GB, free: 4.086 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002035/0.3192, allocations: 1.608 MB / 0.5421 GB, free: 2.625 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002668/0.3195, allocations: 0.6976 MB / 0.5428 GB, free: 1.918 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.547e-05/0.3196, allocations: 4.781 kB / 0.5428 GB, free: 1.914 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.055e-05/0.3196, allocations: 25.92 kB / 0.5428 GB, free: 1.891 MB / 398.1 MB Notification: Performance of SimCode: time 1.633e-06/0.3196, allocations: 1.125 kB / 0.5428 GB, free: 1.891 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02071/0.3403, allocations: 2.426 MB / 0.5452 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.523/9.863, allocations: 4.875 kB / 0.5452 GB, free: 0.5938 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