Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",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.002223/0.002223, allocations: 188.6 kB / 16.4 MB, free: 5.625 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.108/2.108, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001161/0.00116, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2919/0.2919, allocations: 43.55 MB / 362.7 MB, free: 11.34 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004788/0.0004788, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1311, allocations: 58.86 MB / 490.3 MB, free: 9.246 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01799/0.1491, allocations: 9.486 MB / 499.8 MB, free: 15.72 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01081/0.16, allocations: 3.809 MB / 0.4918 GB, free: 11.9 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00239/0.1624, allocations: 59.69 kB / 0.4919 GB, free: 11.84 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003405/0.1659, allocations: 0.7268 MB / 0.4926 GB, free: 11.11 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004549/0.1705, allocations: 0.8489 MB / 0.4934 GB, free: 10.26 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00213/0.1727, allocations: 347.6 kB / 0.4937 GB, free: 9.918 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.006232/0.1789, allocations: 2.154 MB / 0.4958 GB, free: 7.762 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004758/0.1838, allocations: 2.068 MB / 0.4979 GB, free: 5.664 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002611/0.1864, allocations: 1.047 MB / 0.4989 GB, free: 4.613 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003519/0.19, allocations: 1.42 MB / 0.5003 GB, free: 3.188 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009951/0.191, allocations: 168 kB / 0.5004 GB, free: 3.023 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00164/0.1927, allocations: 247.9 kB / 0.5007 GB, free: 2.781 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001914/0.1947, allocations: 0.8685 MB / 0.5015 GB, free: 1.91 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001592/0.1963, allocations: 0.6289 MB / 0.5021 GB, free: 1.273 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007896/0.2042, allocations: 4.414 MB / 0.5064 GB, free: 12.85 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2043, allocations: 4 kB / 0.5064 GB, free: 12.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2043, allocations: 0 / 0.5064 GB, free: 12.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002054/0.2045, allocations: 0 / 0.5064 GB, free: 12.84 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.01186/0.2164, allocations: 3.229 MB / 0.5096 GB, free: 9.547 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.2165, allocations: 12.03 kB / 0.5096 GB, free: 9.535 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001591/0.2181, allocations: 405 kB / 0.51 GB, free: 9.129 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002251/0.2204, allocations: 395.5 kB / 0.5104 GB, free: 8.738 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006503/0.2269, allocations: 1.904 MB / 0.5122 GB, free: 6.781 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003971/0.2274, allocations: 221.7 kB / 0.5124 GB, free: 6.562 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001223/0.2286, allocations: 287.8 kB / 0.5127 GB, free: 6.281 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01304/0.2417, allocations: 3.672 MB / 0.5163 GB, free: 2.539 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001594/0.2419, allocations: 8 kB / 0.5163 GB, free: 2.531 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008244/0.2428, allocations: 112 kB / 0.5164 GB, free: 2.422 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002606/0.243, allocations: 149.4 kB / 0.5166 GB, free: 2.273 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3322/0.5753, allocations: 3.115 MB / 0.5196 GB, free: 40.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03482/0.6102, allocations: 11.5 MB / 0.5308 GB, free: 35.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005865/0.6161, allocations: 2.12 MB / 0.5329 GB, free: 33.87 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005024/0.6167, allocations: 218 kB / 0.5331 GB, free: 33.67 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/0.6167, allocations: 45.25 kB / 0.5332 GB, free: 33.62 MB / 362.7 MB Notification: Performance of pre-optimization done (n=139): time 4.8e-06/0.6167, allocations: 0 / 0.5332 GB, free: 33.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=154): time 0.03323/0.65, allocations: 8.152 MB / 0.5411 GB, free: 29.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.548e-05/0.6501, allocations: 68.53 kB / 0.5412 GB, free: 29.07 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004346/0.6544, allocations: 1.871 MB / 0.543 GB, free: 28.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004065/0.6549, allocations: 51.45 kB / 0.5431 GB, free: 28 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00114/0.656, allocations: 1.281 MB / 0.5443 GB, free: 26.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008174/0.6569, allocations: 0.522 MB / 0.5448 GB, free: 26.39 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001763/0.6571, allocations: 34.88 kB / 0.5449 GB, free: 26.36 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.6573, allocations: 382 kB / 0.5452 GB, free: 26 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002499/0.6598, allocations: 0.8711 MB / 0.5461 GB, free: 25.56 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002737/0.6625, allocations: 1.325 MB / 0.5474 GB, free: 24.53 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002857/0.6655, allocations: 1.078 MB / 0.5484 GB, free: 23.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.219e-05/0.6655, allocations: 3.562 kB / 0.5484 GB, free: 23.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.007783/0.6733, allocations: 2.738 MB / 0.5511 GB, free: 22.08 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.08e-05/0.6734, allocations: 18.92 kB / 0.5511 GB, free: 22.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.285e-05/0.6735, allocations: 16 kB / 0.5511 GB, free: 22.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001396/0.6749, allocations: 374.1 kB / 0.5515 GB, free: 21.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003468/0.6784, allocations: 451.3 kB / 0.5519 GB, free: 21.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007623/0.6861, allocations: 6.099 MB / 0.5579 GB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002758/0.6889, allocations: 127.8 kB / 0.558 GB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004063/0.6893, allocations: 79.45 kB / 0.5581 GB, free: 14.54 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (210): * Single equations (assignments): 206 * 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: 3 * 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: 3 {(2,100.0%) 9,(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00253/0.6919, allocations: 0.9032 MB / 0.5589 GB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000695/0.6926, allocations: 209.4 kB / 0.5591 GB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008843/0.7014, allocations: 2.887 MB / 0.562 GB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.795e-05/0.7015, allocations: 16 kB / 0.562 GB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.371e-05/0.7016, allocations: 8 kB / 0.562 GB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-05/0.7017, allocations: 8.203 kB / 0.562 GB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01829/0.72, allocations: 6.033 MB / 0.5679 GB, free: 4.352 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.173e-05/0.7201, allocations: 8.062 kB / 0.5679 GB, free: 4.344 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002087/0.7222, allocations: 235.6 kB / 0.5681 GB, free: 4.113 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003522/0.7258, allocations: 0.7967 MB / 0.5689 GB, free: 3.309 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003274/0.7262, allocations: 47.97 kB / 0.5689 GB, free: 3.262 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02037/0.7465, allocations: 10.11 MB / 0.5788 GB, free: 8.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.205e-06/0.7466, allocations: 4 kB / 0.5788 GB, free: 8.746 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01281/0.7594, allocations: 4.377 MB / 0.5831 GB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001849/0.7613, allocations: 486.3 kB / 0.5836 GB, free: 3.672 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006619/0.762, allocations: 32 kB / 0.5836 GB, free: 3.641 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002271/0.7643, allocations: 99.88 kB / 0.5837 GB, free: 3.543 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005682/0.765, allocations: 117 kB / 0.5838 GB, free: 3.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001818/0.7651, allocations: 43.98 kB / 0.5838 GB, free: 3.387 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003622/0.7688, allocations: 1.286 MB / 0.5851 GB, free: 2.078 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.956e-06/0.7688, allocations: 4.109 kB / 0.5851 GB, free: 2.074 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003819/0.7727, allocations: 0.5624 MB / 0.5856 GB, free: 1.512 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (116): * Single equations (assignments): 113 * 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 {(2,100.0%) 9,(1,100.0%) 2,(5,84.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01401/0.7867, allocations: 5.932 MB / 0.5914 GB, free: 11.45 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007219/0.794, allocations: 2.589 MB / 0.594 GB, free: 8.793 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/0.7941, allocations: 1.938 kB / 0.594 GB, free: 8.793 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004876/0.7989, allocations: 1.678 MB / 0.5956 GB, free: 7.082 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004341/0.8033, allocations: 0.4931 MB / 0.5961 GB, free: 6.59 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06083/0.8642, allocations: 26.9 MB / 0.6224 GB, free: 10.41 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004137/0.8684, allocations: 2.244 MB / 0.6246 GB, free: 8.141 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003049/0.8715, allocations: 1.151 MB / 0.6257 GB, free: 6.992 MB / 426.7 MB Notification: Performance of SimCode: time 1.933e-06/0.8716, allocations: 0 / 0.6257 GB, free: 6.992 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.333/5.204, allocations: 94.55 MB / 0.718 GB, free: 169.6 MB / 0.4949 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat does not exist to compare? outputFormat=mat