Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.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) 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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009465/0.0009465, allocations: 200.4 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.231/1.231, allocations: 226.5 MB / 244.7 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007592/0.0007592, allocations: 95.34 kB / 296.7 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000232/0.0002322, allocations: 8 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1953/0.1955, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic): time 0.007417/0.203, allocations: 9.774 MB / 417.9 MB, free: 17.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005535/0.2086, allocations: 3.313 MB / 421.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00203/0.2106, allocations: 39.88 kB / 421.3 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001577/0.2122, allocations: 0.5754 MB / 421.8 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002632/0.2149, allocations: 0.788 MB / 422.6 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00186/0.2168, allocations: 0.5701 MB / 423.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00312/0.2199, allocations: 3.06 MB / 426.3 MB, free: 9.539 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001267/0.2212, allocations: 0.7701 MB / 427 MB, free: 8.738 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001483/0.2227, allocations: 1.008 MB / 428 MB, free: 7.727 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001607/0.2243, allocations: 1.249 MB / 429.3 MB, free: 6.473 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005857/0.2249, allocations: 140 kB / 429.4 MB, free: 6.336 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007887/0.2257, allocations: 172 kB / 429.6 MB, free: 6.168 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004883/0.2262, allocations: 493.9 kB / 430.1 MB, free: 5.684 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001434/0.2276, allocations: 1.218 MB / 431.3 MB, free: 4.453 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002382/0.23, allocations: 3.346 MB / 434.6 MB, free: 1.098 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.23, allocations: 0 / 434.6 MB, free: 1.098 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.23, allocations: 4 kB / 434.6 MB, free: 1.094 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001461/0.2302, allocations: 0 / 434.6 MB, free: 1.094 MB / 298.7 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.006356/0.2366, allocations: 2.722 MB / 437.4 MB, free: 14.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.2366, allocations: 15.97 kB / 437.4 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005994/0.2372, allocations: 287.6 kB / 437.7 MB, free: 13.99 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001125/0.2384, allocations: 329.4 kB / 438 MB, free: 13.67 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00265/0.241, allocations: 1.395 MB / 439.4 MB, free: 12.22 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001438/0.2412, allocations: 156.5 kB / 439.5 MB, free: 12.06 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000371/0.2416, allocations: 203.9 kB / 439.7 MB, free: 11.86 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004394/0.246, allocations: 1.908 MB / 441.6 MB, free: 9.898 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.692e-05/0.246, allocations: 11.84 kB / 441.6 MB, free: 9.887 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000192/0.2462, allocations: 84 kB / 441.7 MB, free: 9.805 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.2e-05/0.2463, allocations: 48 kB / 441.8 MB, free: 9.758 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004332/0.2506, allocations: 1.964 MB / 443.7 MB, free: 7.777 MB / 314.7 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.01334/0.264, allocations: 7.476 MB / 451.2 MB, free: 8 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003984/0.268, allocations: 2.297 MB / 453.5 MB, free: 13.67 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002914/0.2709, allocations: 1.378 MB / 454.9 MB, free: 12.3 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001461/0.2711, allocations: 37.97 kB / 454.9 MB, free: 12.27 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.28e-05/0.2712, allocations: 60.56 kB / 455 MB, free: 12.2 MB / 330.7 MB Notification: Performance of pre-optimization done (n=234): time 4.068e-06/0.2712, allocations: 0 / 455 MB, free: 12.2 MB / 330.7 MB Notification: Performance of matching and sorting (n=351): time 0.06354/0.3347, allocations: 17.87 MB / 472.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.162e-05/0.3348, allocations: 86.17 kB / 472.9 MB, free: 10.02 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00298/0.3378, allocations: 1.836 MB / 474.8 MB, free: 8.176 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004098/0.3382, allocations: 81.7 kB / 474.9 MB, free: 8.09 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007373/0.339, allocations: 0.985 MB / 475.8 MB, free: 7.094 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001163/0.3402, allocations: 1.155 MB / 477 MB, free: 5.922 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002843/0.3404, allocations: 68 kB / 477.1 MB, free: 5.855 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002542/0.3407, allocations: 424.7 kB / 477.5 MB, free: 5.434 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002692/0.3434, allocations: 1.232 MB / 478.7 MB, free: 4.199 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002869/0.3463, allocations: 1.552 MB / 480.3 MB, free: 2.586 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005851/0.3522, allocations: 2.905 MB / 483.2 MB, free: 15.6 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-05/0.3522, allocations: 0 / 483.2 MB, free: 15.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.01122/0.3634, allocations: 4.482 MB / 487.6 MB, free: 11.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.819e-05/0.3635, allocations: 7.938 kB / 487.7 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/0.3635, allocations: 4 kB / 487.7 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005436/0.369, allocations: 1.33 MB / 489 MB, free: 9.707 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002905/0.3719, allocations: 0.5344 MB / 489.5 MB, free: 9.172 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02738/0.3993, allocations: 18.86 MB / 0.4965 GB, free: 5.371 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002647/0.402, allocations: 112 kB / 0.4966 GB, free: 5.262 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004877/0.4025, allocations: 108 kB / 0.4967 GB, free: 5.156 MB / 378.7 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 (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 initialization (298): * Single equations (assignments): 291 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 5} * Non-linear torn systems: 2 {3 50,2 43} Notification: Performance of prepare postOptimizeDAE: time 0.001548/0.4041, allocations: 0.5809 MB / 0.4972 GB, free: 4.566 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006269/0.4047, allocations: 256.8 kB / 0.4975 GB, free: 4.312 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2054/0.6101, allocations: 4.428 MB / 0.5018 GB, free: 88.86 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-05/0.6102, allocations: 37.52 kB / 0.5018 GB, free: 88.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.629e-05/0.6102, allocations: 4.094 kB / 0.5019 GB, free: 88.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.888e-05/0.6103, allocations: 16.64 kB / 0.5019 GB, free: 88.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01687/0.6272, allocations: 8.446 MB / 0.5101 GB, free: 86.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.982e-05/0.6273, allocations: 4.469 kB / 0.5101 GB, free: 86.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002401/0.6297, allocations: 473.5 kB / 0.5106 GB, free: 86.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005296/0.635, allocations: 1.271 MB / 0.5118 GB, free: 85.96 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004691/0.6355, allocations: 66.61 kB / 0.5119 GB, free: 85.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01825/0.6538, allocations: 17.49 MB / 0.529 GB, free: 72.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.6538, allocations: 7 kB / 0.529 GB, free: 72.41 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01165/0.6655, allocations: 6.153 MB / 0.535 GB, free: 67.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001151/0.6666, allocations: 0.6182 MB / 0.5356 GB, free: 66.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002985/0.667, allocations: 67.92 kB / 0.5356 GB, free: 66.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001633/0.6686, allocations: 122.4 kB / 0.5358 GB, free: 66.22 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008048/0.6694, allocations: 258.8 kB / 0.536 GB, free: 65.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001677/0.6696, allocations: 87.98 kB / 0.5361 GB, free: 65.88 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001419/0.671, allocations: 1.284 MB / 0.5373 GB, free: 64.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.671, allocations: 0 / 0.5373 GB, free: 64.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002438/0.6735, allocations: 0.8672 MB / 0.5382 GB, free: 63.73 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 5} * Non-linear torn systems: 2 {3 41,3 49} Notification: Performance of Backend phase and start with SimCode phase: time 0.01205/0.6855, allocations: 7.056 MB / 0.5451 GB, free: 56.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00699/0.6926, allocations: 4.47 MB / 0.5494 GB, free: 52.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.804e-06/0.6926, allocations: 4.062 kB / 0.5494 GB, free: 52.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004151/0.6968, allocations: 2.994 MB / 0.5524 GB, free: 49.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002349/0.6991, allocations: 353.7 kB / 0.5527 GB, free: 48.69 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03218/0.7314, allocations: 18.96 MB / 0.5712 GB, free: 28.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001358/0.7328, allocations: 1.706 MB / 0.5729 GB, free: 26.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001917/0.7347, allocations: 1.081 MB / 0.574 GB, free: 25.78 MB / 378.7 MB Notification: Performance of SimCode: time 1.192e-06/0.7347, allocations: 0 / 0.574 GB, free: 25.78 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.099/7.834, allocations: 124.2 MB / 0.6952 GB, free: 156 MB / 458.7 MB (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-07 Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic.fmu > Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe 2>&1)