Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.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.FundamentalWave.Examples.BasicMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",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.0009339/0.0009339, allocations: 172.2 kB / 14.1 MB, free: 1.223 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.199/1.199, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0007545/0.0007545, allocations: 90.64 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.914e-05/1.916e-05, allocations: 4 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06741/0.06745, allocations: 47.57 MB / 370.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2885/0.356, allocations: 119.4 MB / 489.5 MB, free: 6.613 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/0.3563, allocations: 93.56 kB / 489.6 MB, free: 6.562 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5028/0.8592, allocations: 160.5 MB / 0.6349 GB, free: 48.13 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.8592, allocations: 0 / 0.6349 GB, free: 48.13 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002161/0.8594, allocations: 107.9 kB / 0.635 GB, free: 48.03 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.007477/0.8669, allocations: 3.914 MB / 0.6388 GB, free: 44.04 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.867, allocations: 8.031 kB / 0.6388 GB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009209/0.8679, allocations: 0.6065 MB / 0.6394 GB, free: 43.41 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003838/0.8717, allocations: 0.9196 MB / 0.6403 GB, free: 42.49 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007081/0.8788, allocations: 3.81 MB / 0.644 GB, free: 38.62 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001419/0.879, allocations: 304.1 kB / 0.6443 GB, free: 38.32 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005043/0.8795, allocations: 403.9 kB / 0.6447 GB, free: 37.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007122/0.8866, allocations: 5.028 MB / 0.6496 GB, free: 32.72 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.982e-05/0.8867, allocations: 0 / 0.6496 GB, free: 32.72 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003226/0.8871, allocations: 172 kB / 0.6498 GB, free: 32.55 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001089/0.8872, allocations: 172 kB / 0.65 GB, free: 32.38 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005827/0.893, allocations: 4.03 MB / 0.6539 GB, free: 28.34 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02552/0.9186, allocations: 16.94 MB / 0.6704 GB, free: 10.9 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004988/0.9236, allocations: 8.289 MB / 0.6785 GB, free: 1.574 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002091/0.9257, allocations: 1.608 MB / 0.6801 GB, free: 15.97 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007835/0.9336, allocations: 4.833 MB / 0.6848 GB, free: 10.95 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.64e-05/0.9336, allocations: 59.83 kB / 0.6849 GB, free: 10.89 MB / 426.7 MB Notification: Performance of pre-optimization done (n=150): time 3.136e-06/0.9336, allocations: 0 / 0.6849 GB, free: 10.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=153): time 0.007562/0.9412, allocations: 4.487 MB / 0.6893 GB, free: 6.293 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.688e-05/0.9413, allocations: 68.72 kB / 0.6893 GB, free: 6.215 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003356/0.9447, allocations: 1.977 MB / 0.6913 GB, free: 4.211 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002562/0.9449, allocations: 49.7 kB / 0.6913 GB, free: 4.156 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001397/0.9463, allocations: 1.86 MB / 0.6931 GB, free: 2.27 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005612/0.9469, allocations: 0.5238 MB / 0.6936 GB, free: 1.738 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.7e-05/0.947, allocations: 40 kB / 0.6937 GB, free: 1.699 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.9472, allocations: 390 kB / 0.694 GB, free: 1.312 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001173/0.9484, allocations: 0.7422 MB / 0.6948 GB, free: 0.5664 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1987/1.147, allocations: 1.428 MB / 0.6962 GB, free: 71.31 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00168/1.149, allocations: 1.015 MB / 0.6972 GB, free: 71.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.498e-05/1.149, allocations: 6.625 kB / 0.6972 GB, free: 71.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=265) (initialization): time 0.004088/1.153, allocations: 2.646 MB / 0.6997 GB, free: 71.12 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.324e-05/1.153, allocations: 15.42 kB / 0.6998 GB, free: 71.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.48e-05/1.153, allocations: 22.16 kB / 0.6998 GB, free: 71.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003319/1.153, allocations: 123.4 kB / 0.6999 GB, free: 71.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001884/1.155, allocations: 0.5387 MB / 0.7004 GB, free: 71.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001278/1.157, allocations: 1.805 MB / 0.7022 GB, free: 69.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001641/1.158, allocations: 122.6 kB / 0.7023 GB, free: 69.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001465/1.158, allocations: 93.58 kB / 0.7024 GB, free: 69.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 100 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (259): * Single equations (assignments): 257 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000275/1.159, allocations: 239.5 kB / 0.7026 GB, free: 69.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003126/1.159, allocations: 243.8 kB / 0.7029 GB, free: 69.69 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003729/1.163, allocations: 2.267 MB / 0.7051 GB, free: 69.37 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/1.163, allocations: 15.94 kB / 0.7051 GB, free: 69.37 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.872e-06/1.163, allocations: 3.781 kB / 0.7051 GB, free: 69.37 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.722e-05/1.163, allocations: 7.594 kB / 0.7051 GB, free: 69.37 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007512/1.17, allocations: 5.539 MB / 0.7105 GB, free: 68.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/1.17, allocations: 6.984 kB / 0.7105 GB, free: 68.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001271/1.172, allocations: 284.7 kB / 0.7108 GB, free: 68.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007681/1.172, allocations: 322.8 kB / 0.7111 GB, free: 68.68 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/1.173, allocations: 36.94 kB / 0.7111 GB, free: 68.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005004/1.178, allocations: 6.285 MB / 0.7173 GB, free: 64.71 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/1.178, allocations: 3.344 kB / 0.7173 GB, free: 64.71 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004428/1.182, allocations: 3.412 MB / 0.7206 GB, free: 64.07 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001186/1.183, allocations: 497.6 kB / 0.7211 GB, free: 63.88 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002774/1.184, allocations: 38.27 kB / 0.7211 GB, free: 63.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001081/1.185, allocations: 88.14 kB / 0.7212 GB, free: 63.88 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002825/1.185, allocations: 118.7 kB / 0.7213 GB, free: 63.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001/1.185, allocations: 39.92 kB / 0.7213 GB, free: 63.88 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002256/1.187, allocations: 1.497 MB / 0.7228 GB, free: 63.71 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.6e-07/1.187, allocations: 3.562 kB / 0.7228 GB, free: 63.71 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00217/1.189, allocations: 0.7223 MB / 0.7235 GB, free: 63.71 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 123 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004339/1.194, allocations: 4.744 MB / 0.7281 GB, free: 62 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003042/1.197, allocations: 2.07 MB / 0.7302 GB, free: 61.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/1.197, allocations: 0 / 0.7302 GB, free: 61.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001978/1.199, allocations: 1.356 MB / 0.7315 GB, free: 61.41 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002172/1.201, allocations: 0.5688 MB / 0.732 GB, free: 61.39 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01017/1.211, allocations: 6.525 MB / 0.7384 GB, free: 59.93 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00184/1.213, allocations: 2.74 MB / 0.7411 GB, free: 59.13 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00176/1.215, allocations: 0.5479 MB / 0.7416 GB, free: 59.05 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001436/1.216, allocations: 1.47 MB / 0.7431 GB, free: 59.05 MB / 426.7 MB Notification: Performance of SimCode: time 9.02e-07/1.216, allocations: 0 / 0.7431 GB, free: 59.05 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0769/1.293, allocations: 61.46 MB / 0.8031 GB, free: 40.7 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001808/1.294, allocations: 191.8 kB / 0.8033 GB, free: 40.48 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.638/4.931, allocations: 0 / 0.8033 GB, free: 40.48 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat does not exist to compare? outputFormat=mat