Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009277/0.009276, allocations: 100 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002144/0.002144, allocations: 197 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.519/1.519, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 45.38 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1063, allocations: 46.63 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary): time 0.0122/0.1186, allocations: 10.99 MB / 384.2 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007824/0.1264, allocations: 3.207 MB / 387.4 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002897/0.1294, allocations: 35.88 kB / 387.4 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002535/0.132, allocations: 0.6832 MB / 388.1 MB, free: 2.336 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.004407/0.1364, allocations: 0.9193 MB / 389 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002773/0.1392, allocations: 0.9207 MB / 389.9 MB, free: 500 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004923/0.1441, allocations: 3.462 MB / 393.4 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001623/0.1458, allocations: 0.8905 MB / 394.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002312/0.1481, allocations: 1.297 MB / 395.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002807/0.1509, allocations: 1.506 MB / 397.1 MB, free: 9.277 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009916/0.1519, allocations: 352 kB / 397.4 MB, free: 8.934 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007987/0.1528, allocations: 384 kB / 397.8 MB, free: 8.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005947/0.1534, allocations: 0.7087 MB / 398.5 MB, free: 7.848 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001535/0.1549, allocations: 1.481 MB / 400 MB, free: 6.359 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004376/0.1593, allocations: 4.273 MB / 404.3 MB, free: 2.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.1593, allocations: 0 / 404.3 MB, free: 2.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1593, allocations: 0 / 404.3 MB, free: 2.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001058/0.1594, allocations: 0 / 404.3 MB, free: 2.07 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 527 * Number of variables: 527 Notification: Performance of Generate backend data structure: time 0.007169/0.1666, allocations: 3.194 MB / 407.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.1667, allocations: 15.89 kB / 407.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004643/0.1671, allocations: 307 kB / 407.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002543/0.1697, allocations: 1.428 MB / 409.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.1698, allocations: 156.5 kB / 409.3 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003085/0.1701, allocations: 208.1 kB / 409.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003721/0.1739, allocations: 1.885 MB / 411.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.822e-05/0.174, allocations: 11.97 kB / 411.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001855/0.1741, allocations: 84 kB / 411.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.542e-05/0.1742, allocations: 48 kB / 411.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004056/0.1782, allocations: 1.914 MB / 413.5 MB, free: 8.637 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01301/0.1913, allocations: 7.388 MB / 420.9 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004001/0.1953, allocations: 2.289 MB / 423.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00295/0.1983, allocations: 1.405 MB / 424.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001379/0.1984, allocations: 33.97 kB / 424.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.969e-05/0.1985, allocations: 56.56 kB / 424.7 MB, free: 13.13 MB / 366.1 MB Notification: Performance of pre-optimization done (n=234): time 5.4e-06/0.1985, allocations: 3.938 kB / 424.7 MB, free: 13.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=351): time 0.06023/0.2588, allocations: 17.63 MB / 442.3 MB, free: 11.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.552e-05/0.2589, allocations: 90.17 kB / 442.4 MB, free: 11.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002715/0.2616, allocations: 1.836 MB / 444.2 MB, free: 9.355 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005379/0.2621, allocations: 81.7 kB / 444.3 MB, free: 9.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009486/0.2631, allocations: 1.006 MB / 445.3 MB, free: 8.258 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001226/0.2643, allocations: 1.216 MB / 446.5 MB, free: 7.031 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009355/0.2653, allocations: 499.5 kB / 447 MB, free: 6.535 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.2654, allocations: 305.1 kB / 447.3 MB, free: 6.234 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002614/0.268, allocations: 1.217 MB / 448.5 MB, free: 5.016 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002627/0.2707, allocations: 1.529 MB / 450.1 MB, free: 3.426 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005093/0.2758, allocations: 2.882 MB / 452.9 MB, free: 476 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.233e-06/0.2758, allocations: 0 / 452.9 MB, free: 476 kB / 382.1 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.2531/0.5289, allocations: 4.458 MB / 457.4 MB, free: 69.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.849e-05/0.529, allocations: 6.344 kB / 457.4 MB, free: 69.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.101e-05/0.529, allocations: 6.156 kB / 457.4 MB, free: 69.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005732/0.5348, allocations: 1.327 MB / 458.7 MB, free: 68.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003096/0.5379, allocations: 0.5281 MB / 459.3 MB, free: 68.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02497/0.5629, allocations: 20.6 MB / 479.9 MB, free: 53.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002745/0.5657, allocations: 108 kB / 480 MB, free: 53.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002677/0.566, allocations: 106.9 kB / 480.1 MB, free: 53.3 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (simpleSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (298): * Single equations (assignments): 291 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,4,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,50), (2,43)} Notification: Performance of prepare postOptimizeDAE: time 0.001206/0.5672, allocations: 0.5809 MB / 480.7 MB, free: 52.89 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004193/0.5676, allocations: 268.3 kB / 480.9 MB, free: 52.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009116/0.5767, allocations: 4.397 MB / 485.3 MB, free: 50.81 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.925e-05/0.5768, allocations: 30.56 kB / 485.3 MB, free: 50.81 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.5768, allocations: 6.375 kB / 485.3 MB, free: 50.81 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.01e-05/0.5768, allocations: 17.91 kB / 485.4 MB, free: 50.81 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01378/0.5906, allocations: 8.371 MB / 493.7 MB, free: 43.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.388e-05/0.5907, allocations: 11.97 kB / 493.7 MB, free: 43.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002144/0.5928, allocations: 455.4 kB / 494.2 MB, free: 43.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004742/0.5976, allocations: 1.266 MB / 495.5 MB, free: 41.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002813/0.5979, allocations: 63.98 kB / 495.5 MB, free: 41.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01911/0.617, allocations: 19.2 MB / 0.5027 GB, free: 21.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.617, allocations: 4 kB / 0.5027 GB, free: 21.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0116/0.6287, allocations: 6.112 MB / 0.5086 GB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001347/0.63, allocations: 0.6279 MB / 0.5092 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003594/0.6304, allocations: 67.83 kB / 0.5093 GB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001693/0.6321, allocations: 107.9 kB / 0.5094 GB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006061/0.6327, allocations: 262.8 kB / 0.5097 GB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001687/0.6329, allocations: 87.98 kB / 0.5097 GB, free: 14.13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001388/0.6343, allocations: 1.29 MB / 0.511 GB, free: 12.85 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6343, allocations: 0 / 0.511 GB, free: 12.85 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002771/0.6371, allocations: 0.869 MB / 0.5118 GB, free: 11.98 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (advancedSolenoid.coil1.i,advancedSolenoid.coil2.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedFeed_x.s,advancedFeed_x.v,simpleSolenoid.coil.i,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (243): * Single equations (assignments): 236 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,2,100.0%), (1,2,100.0%), (1,4,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,41), (3,49)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009887/0.6381, allocations: 442.7 kB / 0.5123 GB, free: 11.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00691/0.645, allocations: 4.468 MB / 0.5166 GB, free: 6.984 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.213e-06/0.6451, allocations: 3.938 kB / 0.5166 GB, free: 6.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004079/0.6492, allocations: 2.984 MB / 0.5196 GB, free: 3.906 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002203/0.6514, allocations: 379.7 kB / 0.5199 GB, free: 3.535 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009985/0.6614, allocations: 5.684 MB / 0.5255 GB, free: 13.81 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001543/0.663, allocations: 1.71 MB / 0.5271 GB, free: 12.06 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001769/0.6648, allocations: 288.1 kB / 0.5274 GB, free: 11.78 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006293/0.6654, allocations: 159.4 kB / 0.5276 GB, free: 11.62 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.6654, allocations: 0 / 0.5276 GB, free: 11.62 MB / 398.1 MB Notification: Performance of Templates: time 0.08983/0.7553, allocations: 53.23 MB / 0.5795 GB, free: 6.301 MB / 446.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.sim & ./Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe 2>&1)