Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.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.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",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.002184/0.002184, allocations: 188.4 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.005/2.005, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001133/0.001133, allocations: 94.12 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003964/0.0003964, allocations: 8 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3228, allocations: 47.57 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1858/0.5086, allocations: 115.8 MB / 490.4 MB, free: 12.77 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003369/0.5089, allocations: 91.94 kB / 490.5 MB, free: 12.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5235/1.033, allocations: 75 MB / 0.5523 GB, free: 64.01 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.555e-06/1.033, allocations: 0 / 0.5523 GB, free: 64.01 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002971/1.033, allocations: 87.81 kB / 0.5524 GB, free: 63.92 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01305/1.046, allocations: 3.486 MB / 0.5558 GB, free: 60.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/1.046, allocations: 8.031 kB / 0.5558 GB, free: 60.36 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001585/1.048, allocations: 455.1 kB / 0.5562 GB, free: 59.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003988/1.052, allocations: 0.5851 MB / 0.5568 GB, free: 59.31 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01113/1.063, allocations: 3.146 MB / 0.5598 GB, free: 56.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002197/1.063, allocations: 234.3 kB / 0.5601 GB, free: 55.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008294/1.064, allocations: 307.9 kB / 0.5604 GB, free: 55.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01027/1.074, allocations: 3.983 MB / 0.5643 GB, free: 51.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001361/1.074, allocations: 7.938 kB / 0.5643 GB, free: 51.44 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004729/1.075, allocations: 135.9 kB / 0.5644 GB, free: 51.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001683/1.075, allocations: 146.2 kB / 0.5645 GB, free: 51.16 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008908/1.084, allocations: 3.171 MB / 0.5676 GB, free: 47.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02855/1.112, allocations: 13.44 MB / 0.5807 GB, free: 34.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005621/1.118, allocations: 4.001 MB / 0.5847 GB, free: 29.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006379/1.125, allocations: 2.712 MB / 0.5873 GB, free: 26.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/1.125, allocations: 47.56 kB / 0.5874 GB, free: 26.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=113): time 4.498e-06/1.125, allocations: 0 / 0.5874 GB, free: 26.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=147): time 0.02102/1.146, allocations: 6.482 MB / 0.5937 GB, free: 20.15 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.816e-05/1.146, allocations: 68.72 kB / 0.5937 GB, free: 20.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00341/1.149, allocations: 1.657 MB / 0.5954 GB, free: 18.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002812/1.15, allocations: 49.7 kB / 0.5954 GB, free: 18.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009343/1.15, allocations: 1.43 MB / 0.5968 GB, free: 16.88 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005334/1.151, allocations: 0.4968 MB / 0.5973 GB, free: 16.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001837/1.151, allocations: 36 kB / 0.5973 GB, free: 16.34 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001336/1.151, allocations: 390.7 kB / 0.5977 GB, free: 15.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001922/1.153, allocations: 0.7769 MB / 0.5985 GB, free: 15.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00212/1.155, allocations: 1.356 MB / 0.5998 GB, free: 13.55 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002275/1.158, allocations: 1.018 MB / 0.6008 GB, free: 12.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-05/1.158, allocations: 4 kB / 0.6008 GB, free: 12.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.005447/1.163, allocations: 2.362 MB / 0.6031 GB, free: 10.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.558e-05/1.163, allocations: 12 kB / 0.6031 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.961e-05/1.163, allocations: 16.53 kB / 0.6031 GB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004954/1.164, allocations: 126.5 kB / 0.6032 GB, free: 9.996 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003457/1.167, allocations: 499.2 kB / 0.6037 GB, free: 9.508 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001083/1.168, allocations: 1.315 MB / 0.605 GB, free: 8.059 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002685/1.171, allocations: 124 kB / 0.6051 GB, free: 7.938 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002542/1.171, allocations: 83.95 kB / 0.6052 GB, free: 7.855 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * 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 (233): * Single equations (assignments): 230 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(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%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002426/1.174, allocations: 0.9773 MB / 0.6061 GB, free: 6.867 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005906/1.174, allocations: 201.5 kB / 0.6063 GB, free: 6.668 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004977/1.179, allocations: 2.016 MB / 0.6083 GB, free: 4.633 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.732e-05/1.179, allocations: 16 kB / 0.6083 GB, free: 4.617 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/1.18, allocations: 0 / 0.6083 GB, free: 4.617 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.846e-05/1.18, allocations: 7.969 kB / 0.6083 GB, free: 4.609 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01202/1.192, allocations: 5.117 MB / 0.6133 GB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.09e-05/1.192, allocations: 0 / 0.6133 GB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002791/1.194, allocations: 327.6 kB / 0.6136 GB, free: 15.06 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004868/1.195, allocations: 106.7 kB / 0.6137 GB, free: 14.95 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001412/1.195, allocations: 24 kB / 0.6138 GB, free: 14.92 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001245/1.196, allocations: 1.288 MB / 0.615 GB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.633e-06/1.196, allocations: 4 kB / 0.615 GB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008128/1.205, allocations: 3.282 MB / 0.6182 GB, free: 10.09 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001549/1.206, allocations: 474.4 kB / 0.6187 GB, free: 9.605 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000459/1.207, allocations: 28 kB / 0.6187 GB, free: 9.578 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001903/1.208, allocations: 95.89 kB / 0.6188 GB, free: 9.484 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002812/1.209, allocations: 81.19 kB / 0.6189 GB, free: 9.402 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001359/1.209, allocations: 40 kB / 0.6189 GB, free: 9.363 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003116/1.212, allocations: 1.266 MB / 0.6202 GB, free: 8.074 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.11e-07/1.212, allocations: 0 / 0.6202 GB, free: 8.074 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003026/1.215, allocations: 0.5898 MB / 0.6207 GB, free: 7.484 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009559/1.225, allocations: 4.697 MB / 0.6253 GB, free: 2.707 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005834/1.231, allocations: 2.234 MB / 0.6275 GB, free: 428 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.034e-05/1.231, allocations: 4 kB / 0.6275 GB, free: 424 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00293/1.234, allocations: 1.207 MB / 0.6287 GB, free: 15.15 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003844/1.237, allocations: 475.4 kB / 0.6291 GB, free: 14.68 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3244/1.562, allocations: 29.07 MB / 0.6575 GB, free: 86.58 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0024/1.564, allocations: 2.281 MB / 0.6598 GB, free: 85.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002557/1.567, allocations: 1.188 MB / 0.6609 GB, free: 85.84 MB / 410.7 MB Notification: Performance of SimCode: time 1.172e-06/1.567, allocations: 0 / 0.6609 GB, free: 85.84 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.568/5.135, allocations: 98.5 MB / 0.7571 GB, free: 20.24 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat