Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001051/0.001051, allocations: 173.5 kB / 16.72 MB, free: 4.953 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.307/1.307, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007424/0.0007424, allocations: 95.8 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003615/0.0003617, allocations: 12 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.208/0.2084, allocations: 47.57 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary): time 0.007219/0.2156, allocations: 9.648 MB / 384.8 MB, free: 37.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004885/0.2205, allocations: 3.093 MB / 387.9 MB, free: 35.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001438/0.222, allocations: 37.91 kB / 388 MB, free: 35.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008708/0.2229, allocations: 0.5655 MB / 388.5 MB, free: 34.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001696/0.2246, allocations: 0.7556 MB / 389.3 MB, free: 34.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001233/0.2258, allocations: 0.5581 MB / 389.8 MB, free: 33.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002332/0.2282, allocations: 3.062 MB / 392.9 MB, free: 30.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007898/0.229, allocations: 0.7662 MB / 393.7 MB, free: 30.13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009877/0.23, allocations: 1.008 MB / 394.7 MB, free: 29.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009572/0.2309, allocations: 1.245 MB / 395.9 MB, free: 27.87 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002355/0.2312, allocations: 140 kB / 396.1 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003338/0.2315, allocations: 160 kB / 396.2 MB, free: 27.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002755/0.2318, allocations: 0.4901 MB / 396.7 MB, free: 27.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007578/0.2326, allocations: 1.21 MB / 397.9 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001686/0.2343, allocations: 3.353 MB / 401.3 MB, free: 22.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2343, allocations: 0 / 401.3 MB, free: 22.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2343, allocations: 0 / 401.3 MB, free: 22.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.319e-05/0.2343, allocations: 0 / 401.3 MB, free: 22.5 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.004772/0.2391, allocations: 2.702 MB / 404 MB, free: 19.73 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.2392, allocations: 11.97 kB / 404 MB, free: 19.72 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002588/0.2394, allocations: 291.5 kB / 404.3 MB, free: 19.42 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002784/0.2397, allocations: 293.4 kB / 404.6 MB, free: 19.13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001705/0.2414, allocations: 1.376 MB / 405.9 MB, free: 17.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.479e-05/0.2415, allocations: 156.5 kB / 406.1 MB, free: 17.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002156/0.2417, allocations: 211.8 kB / 406.3 MB, free: 17.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003079/0.2448, allocations: 1.912 MB / 408.2 MB, free: 15.37 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.667e-05/0.2449, allocations: 3.906 kB / 408.2 MB, free: 15.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001474/0.245, allocations: 88 kB / 408.3 MB, free: 15.28 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.383e-05/0.2451, allocations: 48 kB / 408.3 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003382/0.2485, allocations: 1.957 MB / 410.3 MB, free: 13.26 MB / 298.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.01/0.2585, allocations: 7.496 MB / 417.8 MB, free: 5.477 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002923/0.2614, allocations: 2.281 MB / 420.1 MB, free: 3.156 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002169/0.2636, allocations: 1.386 MB / 421.5 MB, free: 1.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001235/0.2637, allocations: 33.97 kB / 421.5 MB, free: 1.738 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.749e-05/0.2638, allocations: 60.56 kB / 421.6 MB, free: 1.668 MB / 298.7 MB Notification: Performance of pre-optimization done (n=234): time 3.767e-06/0.2638, allocations: 0 / 421.6 MB, free: 1.668 MB / 298.7 MB Notification: Performance of matching and sorting (n=351): time 0.05555/0.3193, allocations: 17.88 MB / 439.4 MB, free: 15.59 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.936e-05/0.3194, allocations: 86.17 kB / 439.5 MB, free: 15.49 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002274/0.3217, allocations: 1.828 MB / 441.3 MB, free: 13.66 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002572/0.322, allocations: 85.7 kB / 441.4 MB, free: 13.57 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000671/0.3227, allocations: 0.9849 MB / 442.4 MB, free: 12.57 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008719/0.3235, allocations: 1.159 MB / 443.6 MB, free: 11.39 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001771/0.3237, allocations: 64 kB / 443.6 MB, free: 11.33 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002157/0.3239, allocations: 428.7 kB / 444.1 MB, free: 10.91 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002397/0.3264, allocations: 1.232 MB / 445.3 MB, free: 9.672 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002487/0.3289, allocations: 1.541 MB / 446.8 MB, free: 8.07 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005127/0.334, allocations: 2.905 MB / 449.7 MB, free: 5.086 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.334, allocations: 4 kB / 449.7 MB, free: 5.082 MB / 330.7 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.01007/0.3441, allocations: 4.478 MB / 454.2 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.878e-05/0.3442, allocations: 4.781 kB / 454.2 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.695e-05/0.3442, allocations: 4 kB / 454.2 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005091/0.3493, allocations: 1.33 MB / 455.6 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002594/0.3519, allocations: 0.5422 MB / 456.1 MB, free: 14.65 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02476/0.3767, allocations: 18.84 MB / 474.9 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002459/0.3792, allocations: 123.9 kB / 475.1 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004152/0.3796, allocations: 112 kB / 475.2 MB, free: 10.63 MB / 362.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.001341/0.3809, allocations: 0.578 MB / 475.7 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004729/0.3814, allocations: 264.7 kB / 476 MB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01005/0.3915, allocations: 4.435 MB / 480.4 MB, free: 5.285 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.723e-05/0.3915, allocations: 32 kB / 480.5 MB, free: 5.254 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.3916, allocations: 8 kB / 480.5 MB, free: 5.246 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.591e-05/0.3916, allocations: 15.94 kB / 480.5 MB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01577/0.4074, allocations: 8.437 MB / 488.9 MB, free: 12.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.359e-05/0.4074, allocations: 7.922 kB / 488.9 MB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002282/0.4097, allocations: 475.4 kB / 489.4 MB, free: 12.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004807/0.4145, allocations: 1.263 MB / 490.7 MB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002545/0.4148, allocations: 67.97 kB / 490.7 MB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.171/0.5858, allocations: 17.49 MB / 0.4963 GB, free: 103 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.5859, allocations: 3 kB / 0.4963 GB, free: 103 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01261/0.5985, allocations: 6.146 MB / 0.5023 GB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001134/0.5997, allocations: 0.6184 MB / 0.5029 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002833/0.5999, allocations: 63.31 kB / 0.503 GB, free: 100.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001596/0.6016, allocations: 132.8 kB / 0.5031 GB, free: 100.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007653/0.6023, allocations: 249.1 kB / 0.5033 GB, free: 100 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001908/0.6025, allocations: 89.3 kB / 0.5034 GB, free: 100 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001605/0.6041, allocations: 1.276 MB / 0.5047 GB, free: 99.53 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.6041, allocations: 3.125 kB / 0.5047 GB, free: 99.53 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002346/0.6065, allocations: 0.8659 MB / 0.5055 GB, free: 99.41 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.01181/0.6183, allocations: 7.053 MB / 0.5124 GB, free: 94.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006489/0.6249, allocations: 4.468 MB / 0.5168 GB, free: 90.46 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.6249, allocations: 0 / 0.5168 GB, free: 90.46 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003807/0.6287, allocations: 2.986 MB / 0.5197 GB, free: 87.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0023/0.631, allocations: 365 kB / 0.52 GB, free: 87.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02938/0.6604, allocations: 18.91 MB / 0.5385 GB, free: 67.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00104/0.6615, allocations: 1.709 MB / 0.5402 GB, free: 65.49 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001523/0.663, allocations: 1.069 MB / 0.5412 GB, free: 64.43 MB / 378.7 MB Notification: Performance of SimCode: time 9.92e-07/0.663, allocations: 0 / 0.5412 GB, free: 64.43 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.077/7.74, allocations: 123.9 MB / 0.6622 GB, free: 144.1 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe 2>&1)