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.002094/0.002101, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.004/2.004, allocations: 205.3 MB / 214.1 MB, free: 14.09 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001756/0.001756, allocations: 91.45 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3034/0.3034, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.579e-05/2.578e-05, allocations: 224 / 418.3 MB, free: 40.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4091/0.4092, allocations: 58.85 MB / 477.2 MB, free: 5.301 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2187/0.6279, allocations: 122.3 MB / 0.5854 GB, free: 8.914 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002881/0.6283, allocations: 79.95 kB / 0.5855 GB, free: 8.836 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6202/1.249, allocations: 61.1 MB / 0.6452 GB, free: 110 MB / 475.1 MB Notification: Performance of FrontEnd: time 3.647e-06/1.249, allocations: 0.75 kB / 0.6452 GB, free: 110 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0004269/1.249, allocations: 87.83 kB / 0.6453 GB, free: 110 MB / 475.1 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.01266/1.262, allocations: 2.915 MB / 0.6481 GB, free: 109 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.606e-05/1.262, allocations: 13.12 kB / 0.6481 GB, free: 109 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002947/1.265, allocations: 398.6 kB / 0.6485 GB, free: 108.8 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009378/1.274, allocations: 2.147 MB / 0.6506 GB, free: 108.3 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002623/1.274, allocations: 97.25 kB / 0.6507 GB, free: 108.3 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001352/1.276, allocations: 174.9 kB / 0.6509 GB, free: 108.3 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01014/1.286, allocations: 2.738 MB / 0.6535 GB, free: 108.3 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01288/1.299, allocations: 3.218 MB / 0.6567 GB, free: 107.9 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001614/1.299, allocations: 11.88 kB / 0.6567 GB, free: 107.9 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006375/1.3, allocations: 2.375 kB / 0.6567 GB, free: 107.9 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002166/1.3, allocations: 136.8 kB / 0.6568 GB, free: 107.9 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03269/1.333, allocations: 11.1 MB / 0.6677 GB, free: 105.4 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006136/1.339, allocations: 2.181 MB / 0.6698 GB, free: 104.5 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002354/1.341, allocations: 1.036 MB / 0.6708 GB, free: 104.1 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005043/1.342, allocations: 230.8 kB / 0.671 GB, free: 103.9 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/1.342, allocations: 47.59 kB / 0.6711 GB, free: 103.8 MB / 475.1 MB Notification: Performance of pre-optimization done (n=148): time 4.318e-06/1.342, allocations: 0 / 0.6711 GB, free: 103.8 MB / 475.1 MB Notification: Performance of matching and sorting (n=162): time 0.01683/1.359, allocations: 5.587 MB / 0.6765 GB, free: 101.5 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.997e-05/1.359, allocations: 68.41 kB / 0.6766 GB, free: 101.4 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003295/1.362, allocations: 1.446 MB / 0.678 GB, free: 100.9 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004502/1.363, allocations: 25.7 kB / 0.678 GB, free: 100.8 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009215/1.364, allocations: 1.284 MB / 0.6793 GB, free: 99.79 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007778/1.364, allocations: 0.5264 MB / 0.6798 GB, free: 99.37 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001591/1.365, allocations: 0 / 0.6798 GB, free: 99.37 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/1.365, allocations: 388.5 kB / 0.6802 GB, free: 99.02 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001974/1.367, allocations: 0.8474 MB / 0.681 GB, free: 98.69 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002366/1.369, allocations: 1.287 MB / 0.6823 GB, free: 97.82 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002795/1.372, allocations: 1.085 MB / 0.6833 GB, free: 97.4 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.072e-05/1.372, allocations: 3.875 kB / 0.6833 GB, free: 97.4 MB / 475.1 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.007235/1.379, allocations: 2.625 MB / 0.6859 GB, free: 96.5 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.892e-05/1.379, allocations: 10.69 kB / 0.6859 GB, free: 96.5 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.952e-05/1.379, allocations: 13.12 kB / 0.6859 GB, free: 96.5 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001738/1.381, allocations: 433.7 kB / 0.6863 GB, free: 96.37 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004132/1.385, allocations: 465.5 kB / 0.6868 GB, free: 96.36 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009744/1.395, allocations: 6.738 MB / 0.6933 GB, free: 91.38 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003633/1.399, allocations: 94.14 kB / 0.6934 GB, free: 91.38 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006153/1.4, allocations: 78.64 kB / 0.6935 GB, free: 91.36 MB / 475.1 MB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "Stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (210): * Single equations (assignments): 207 * 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,(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006094/1.4, allocations: 153.8 kB / 0.6937 GB, free: 91.24 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00807/1.408, allocations: 2.664 MB / 0.6963 GB, free: 90.28 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001012/1.409, allocations: 194.5 kB / 0.6964 GB, free: 90.18 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008662/1.418, allocations: 2.844 MB / 0.6992 GB, free: 89.12 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.837e-05/1.418, allocations: 13.5 kB / 0.6992 GB, free: 89.12 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.865e-05/1.418, allocations: 13.86 kB / 0.6992 GB, free: 89.12 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-05/1.418, allocations: 11.55 kB / 0.6993 GB, free: 89.11 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01779/1.436, allocations: 5.722 MB / 0.7048 GB, free: 86.83 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.382e-05/1.436, allocations: 2.688 kB / 0.7048 GB, free: 86.83 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002306/1.438, allocations: 246.9 kB / 0.7051 GB, free: 86.82 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003946/1.442, allocations: 0.8377 MB / 0.7059 GB, free: 86.58 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004075/1.443, allocations: 17.91 kB / 0.7059 GB, free: 86.58 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01765/1.46, allocations: 10.01 MB / 0.7157 GB, free: 80.2 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.967e-06/1.461, allocations: 2.938 kB / 0.7157 GB, free: 80.2 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01117/1.472, allocations: 4.35 MB / 0.7199 GB, free: 77.99 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002129/1.474, allocations: 491.4 kB / 0.7204 GB, free: 77.54 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009263/1.475, allocations: 11.7 kB / 0.7204 GB, free: 77.54 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002781/1.478, allocations: 84.38 kB / 0.7205 GB, free: 77.49 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006468/1.478, allocations: 127.3 kB / 0.7206 GB, free: 77.41 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001947/1.479, allocations: 47.42 kB / 0.7207 GB, free: 77.37 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.002652/1.481, allocations: 1.082 MB / 0.7217 GB, free: 76.4 MB / 475.1 MB Notification: Performance of sort global known variables: time 1.082e-06/1.481, allocations: 0 / 0.7217 GB, free: 76.4 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.004037/1.485, allocations: 0.5505 MB / 0.7223 GB, free: 75.86 MB / 475.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.i_0_s,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 () * 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,(3,88.9%) 34} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.012/1.497, allocations: 5.887 MB / 0.728 GB, free: 70.45 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.006202/1.504, allocations: 2.525 MB / 0.7305 GB, free: 68.11 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 1.15e-05/1.504, allocations: 4.375 kB / 0.7305 GB, free: 68.11 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003966/1.508, allocations: 1.607 MB / 0.7321 GB, free: 66.61 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004157/1.512, allocations: 408.6 kB / 0.7324 GB, free: 66.29 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01584/1.528, allocations: 5.404 MB / 0.7377 GB, free: 61.55 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002683/1.531, allocations: 2.25 MB / 0.7399 GB, free: 59.77 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002627/1.533, allocations: 1.134 MB / 0.741 GB, free: 58.73 MB / 475.1 MB Notification: Performance of SimCode: time 1.272e-06/1.533, allocations: 0 / 0.741 GB, free: 58.73 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.019/5.552, allocations: 88.17 MB / 0.8271 GB, free: 6.863 MB / 0.4952 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