Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001314/0.001314, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001366/0.001366, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2309/0.2309, allocations: 46.11 MB / 344.4 MB, free: 11.47 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00225/0.002251, allocations: 79.86 kB / 480.9 MB, free: 4.543 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3432/0.3455, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.VariableComponents): time 0.003234/0.3487, allocations: 1.729 MB / 0.5323 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001644/0.3489, allocations: 90.23 kB / 0.5324 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.01e-05/0.349, allocations: 7.5 kB / 0.5324 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.754e-05/0.3491, allocations: 11.81 kB / 0.5324 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.365e-05/0.3492, allocations: 23.69 kB / 0.5324 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.4e-05/0.3493, allocations: 27.62 kB / 0.5324 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001415/0.3494, allocations: 108 kB / 0.5325 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.3496, allocations: 50.17 kB / 0.5326 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.74e-05/0.3497, allocations: 40.2 kB / 0.5326 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.758e-05/0.3498, allocations: 59.39 kB / 0.5327 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.405e-05/0.3498, allocations: 11.59 kB / 0.5327 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.841e-05/0.3498, allocations: 10.59 kB / 0.5327 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.955e-05/0.3498, allocations: 23.3 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.063e-05/0.3499, allocations: 49.16 kB / 0.5328 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000166/0.3501, allocations: 117 kB / 0.5329 GB, free: 11.59 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.3501, allocations: 1.219 kB / 0.5329 GB, free: 11.59 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3501, allocations: 0 / 0.5329 GB, free: 11.59 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.3501, allocations: 0 / 0.5329 GB, free: 11.59 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.0006973/0.3508, allocations: 425.5 kB / 0.5333 GB, free: 11.17 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.3509, allocations: 9.25 kB / 0.5333 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.952e-05/0.3509, allocations: 41.36 kB / 0.5333 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.182e-05/0.3509, allocations: 10.61 kB / 0.5333 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001657/0.3511, allocations: 176.6 kB / 0.5335 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/0.3511, allocations: 7.594 kB / 0.5335 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.687e-05/0.3512, allocations: 11.31 kB / 0.5335 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003405/0.3515, allocations: 129.9 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.3515, allocations: 5.438 kB / 0.5337 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.3516, allocations: 4 kB / 0.5337 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.3516, allocations: 3.375 kB / 0.5337 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003698/0.3519, allocations: 113 kB / 0.5338 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008043/0.3528, allocations: 473 kB / 0.5342 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002527/0.353, allocations: 85.27 kB / 0.5343 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002497/0.3533, allocations: 69.92 kB / 0.5344 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.566e-05/0.3533, allocations: 0 / 0.5344 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.955e-05/0.3533, allocations: 35.88 kB / 0.5344 GB, free: 10.17 MB / 398.1 MB Notification: Performance of pre-optimization done (n=6): time 9.72e-07/0.3534, allocations: 0 / 0.5344 GB, free: 10.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=6): time 0.0008781/0.3542, allocations: 272.7 kB / 0.5347 GB, free: 9.961 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.639e-05/0.3543, allocations: 52.78 kB / 0.5347 GB, free: 9.898 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.3544, allocations: 120.9 kB / 0.5348 GB, free: 9.785 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.325e-05/0.3545, allocations: 31.02 kB / 0.5349 GB, free: 9.75 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.368e-05/0.3546, allocations: 108.3 kB / 0.535 GB, free: 9.641 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.375e-05/0.3546, allocations: 26.53 kB / 0.535 GB, free: 9.617 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.266e-05/0.3546, allocations: 21.84 kB / 0.535 GB, free: 9.594 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.3548, allocations: 321.6 kB / 0.5353 GB, free: 9.273 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001634/0.355, allocations: 32.59 kB / 0.5353 GB, free: 9.262 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001767/0.3552, allocations: 60.47 kB / 0.5354 GB, free: 9.215 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003255/0.3555, allocations: 102.4 kB / 0.5355 GB, free: 9.148 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3555, allocations: 0 / 0.5355 GB, free: 9.148 MB / 398.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004503/0.356, allocations: 150.8 kB / 0.5356 GB, free: 9.051 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.356, allocations: 5.5 kB / 0.5356 GB, free: 9.051 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.356, allocations: 0 / 0.5356 GB, free: 9.051 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001571/0.3562, allocations: 23.84 kB / 0.5357 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.3563, allocations: 16.36 kB / 0.5357 GB, free: 9.031 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001225/0.3575, allocations: 1.401 MB / 0.5371 GB, free: 7.578 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001105/0.3577, allocations: 19.44 kB / 0.5371 GB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.3577, allocations: 6.781 kB / 0.5371 GB, free: 7.562 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 0.0001004/0.3578, allocations: 114.3 kB / 0.5372 GB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.486e-05/0.3578, allocations: 14.75 kB / 0.5372 GB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.204e-05/0.3579, allocations: 14.5 kB / 0.5372 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3579, allocations: 1.062 kB / 0.5372 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.3579, allocations: 320 / 0.5372 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.3579, allocations: 1.094 kB / 0.5372 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007469/0.3586, allocations: 430.6 kB / 0.5376 GB, free: 7.012 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.3586, allocations: 0.9688 kB / 0.5376 GB, free: 7.012 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.699e-05/0.3587, allocations: 26.34 kB / 0.5377 GB, free: 6.996 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.094e-05/0.3588, allocations: 23.09 kB / 0.5377 GB, free: 6.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.297e-06/0.3588, allocations: 1.156 kB / 0.5377 GB, free: 6.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001097/0.36, allocations: 1.403 MB / 0.539 GB, free: 5.52 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.36, allocations: 1.312 kB / 0.539 GB, free: 5.52 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004759/0.3604, allocations: 238.1 kB / 0.5393 GB, free: 5.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.406e-05/0.3605, allocations: 87.12 kB / 0.5394 GB, free: 5.219 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.108e-05/0.3605, allocations: 5.062 kB / 0.5394 GB, free: 5.215 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001173/0.3607, allocations: 15.42 kB / 0.5394 GB, free: 5.207 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.716e-05/0.3607, allocations: 8.125 kB / 0.5394 GB, free: 5.203 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.634e-06/0.3607, allocations: 5.359 kB / 0.5394 GB, free: 5.199 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.462e-05/0.3608, allocations: 101.4 kB / 0.5395 GB, free: 5.109 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3608, allocations: 0 / 0.5395 GB, free: 5.109 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002727/0.3611, allocations: 27.36 kB / 0.5395 GB, free: 5.102 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.0008134/0.3619, allocations: 0.7684 MB / 0.5403 GB, free: 4.375 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000554/0.3625, allocations: 216.5 kB / 0.5405 GB, free: 4.203 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.19e-05/0.3625, allocations: 1.125 kB / 0.5405 GB, free: 4.203 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002707/0.3628, allocations: 166.6 kB / 0.5406 GB, free: 4.059 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003234/0.3631, allocations: 17.72 kB / 0.5406 GB, free: 4.047 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002185/0.3653, allocations: 1.596 MB / 0.5422 GB, free: 2.594 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003386/0.3657, allocations: 0.701 MB / 0.5429 GB, free: 1.883 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.846e-05/0.3657, allocations: 5.281 kB / 0.5429 GB, free: 1.879 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.298e-05/0.3658, allocations: 26.2 kB / 0.5429 GB, free: 1.855 MB / 398.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3658, allocations: 0 / 0.5429 GB, free: 1.855 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02788/0.3936, allocations: 2.382 MB / 0.5452 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.825/9.219, allocations: 13.36 kB / 0.5453 GB, free: 0.5977 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_VariableComponents_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_VariableComponents.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe 2>&1)