Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001007/0.001007, allocations: 94.06 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001467/0.001467, allocations: 195.2 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2116/0.2116, allocations: 45.92 MB / 344.1 MB, free: 12.21 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000251/0.0002511, allocations: 4 kB / 418.2 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1342, allocations: 63.48 MB / 481.6 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01141/0.1456, allocations: 10.33 MB / 492 MB, free: 10.89 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008402/0.1541, allocations: 3.721 MB / 495.7 MB, free: 7.152 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002303/0.1564, allocations: 71.62 kB / 495.8 MB, free: 7.082 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002497/0.1589, allocations: 0.6833 MB / 496.5 MB, free: 6.395 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00329/0.1622, allocations: 0.7963 MB / 497.3 MB, free: 5.594 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00129/0.1635, allocations: 335.5 kB / 497.6 MB, free: 5.266 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004175/0.1677, allocations: 3.309 MB / 0.4891 GB, free: 1.945 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002728/0.1705, allocations: 2.128 MB / 0.4912 GB, free: 15.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001908/0.1724, allocations: 1.136 MB / 0.4923 GB, free: 14.65 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0021/0.1745, allocations: 1.58 MB / 0.4939 GB, free: 13.06 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000358/0.1749, allocations: 168 kB / 0.494 GB, free: 12.9 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007352/0.1756, allocations: 267.8 kB / 0.4943 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009079/0.1766, allocations: 0.9151 MB / 0.4952 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008894/0.1775, allocations: 0.6289 MB / 0.4958 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004018/0.1815, allocations: 4.476 MB / 0.5002 GB, free: 6.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.1815, allocations: 0 / 0.5002 GB, free: 6.594 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1815, allocations: 0 / 0.5002 GB, free: 6.594 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001267/0.1817, allocations: 0 / 0.5002 GB, free: 6.594 MB / 382.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.006308/0.188, allocations: 3.26 MB / 0.5034 GB, free: 3.266 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.188, allocations: 8.031 kB / 0.5034 GB, free: 3.258 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007797/0.1888, allocations: 412.9 kB / 0.5038 GB, free: 2.844 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001065/0.1899, allocations: 407.5 kB / 0.5041 GB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003314/0.1932, allocations: 1.958 MB / 0.5061 GB, free: 440 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001787/0.1934, allocations: 225.6 kB / 0.5063 GB, free: 212 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2527/0.4461, allocations: 279.3 kB / 0.5065 GB, free: 37.58 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01141/0.4575, allocations: 3.711 MB / 0.5102 GB, free: 36.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001049/0.4577, allocations: 13.12 kB / 0.5102 GB, free: 36.9 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003667/0.4581, allocations: 117.3 kB / 0.5103 GB, free: 36.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000292/0.4584, allocations: 141.6 kB / 0.5104 GB, free: 36.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006527/0.4649, allocations: 3.16 MB / 0.5135 GB, free: 35.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02221/0.4871, allocations: 11.6 MB / 0.5248 GB, free: 29.26 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003725/0.4909, allocations: 2.18 MB / 0.527 GB, free: 27.8 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00185/0.4928, allocations: 1.236 MB / 0.5282 GB, free: 27.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002842/0.4931, allocations: 214.3 kB / 0.5284 GB, free: 27.01 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.105e-05/0.4931, allocations: 43.81 kB / 0.5284 GB, free: 26.96 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.376e-06/0.4931, allocations: 0 / 0.5284 GB, free: 26.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01701/0.5102, allocations: 7.883 MB / 0.5361 GB, free: 22.36 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.5102, allocations: 66.41 kB / 0.5362 GB, free: 22.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002686/0.5129, allocations: 1.937 MB / 0.5381 GB, free: 20.31 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002848/0.5133, allocations: 49.7 kB / 0.5381 GB, free: 20.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007663/0.514, allocations: 1.367 MB / 0.5395 GB, free: 18.88 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004216/0.5145, allocations: 0.5203 MB / 0.54 GB, free: 18.36 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.513e-05/0.5146, allocations: 40 kB / 0.54 GB, free: 18.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.313e-05/0.5147, allocations: 373.9 kB / 0.5404 GB, free: 17.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/0.5159, allocations: 0.8784 MB / 0.5412 GB, free: 17.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001296/0.5172, allocations: 1.344 MB / 0.5425 GB, free: 15.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00135/0.5186, allocations: 1.099 MB / 0.5436 GB, free: 14.44 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/0.5186, allocations: 4 kB / 0.5436 GB, free: 14.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004155/0.5228, allocations: 2.925 MB / 0.5465 GB, free: 11.47 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.021e-05/0.5228, allocations: 12 kB / 0.5465 GB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.559e-05/0.5229, allocations: 12 kB / 0.5465 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007772/0.5236, allocations: 396.2 kB / 0.5469 GB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001526/0.5252, allocations: 447.3 kB / 0.5473 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004337/0.5295, allocations: 6.2 MB / 0.5533 GB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001682/0.5312, allocations: 127.7 kB / 0.5535 GB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001673/0.5314, allocations: 71.98 kB / 0.5535 GB, free: 3.836 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (206): * Single equations (assignments): 202 * 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%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001563/0.533, allocations: 0.8999 MB / 0.5544 GB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004224/0.5334, allocations: 213.4 kB / 0.5546 GB, free: 2.715 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004502/0.5379, allocations: 2.911 MB / 0.5575 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.677e-05/0.538, allocations: 16 kB / 0.5575 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/0.538, allocations: 8 kB / 0.5575 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.78e-05/0.538, allocations: 7.969 kB / 0.5575 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01099/0.549, allocations: 6.153 MB / 0.5635 GB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/0.549, allocations: 4 kB / 0.5635 GB, free: 9.496 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001044/0.5501, allocations: 244.1 kB / 0.5637 GB, free: 9.258 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001967/0.5521, allocations: 0.8025 MB / 0.5645 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/0.5522, allocations: 39.97 kB / 0.5646 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01152/0.5637, allocations: 9.832 MB / 0.5742 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.5638, allocations: 8.078 kB / 0.5742 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00698/0.5708, allocations: 4.181 MB / 0.5783 GB, free: 9.918 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001354/0.5722, allocations: 490.3 kB / 0.5787 GB, free: 9.418 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002993/0.5725, allocations: 43.92 kB / 0.5788 GB, free: 9.375 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001057/0.5735, allocations: 99.84 kB / 0.5789 GB, free: 9.277 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002911/0.5738, allocations: 125.1 kB / 0.579 GB, free: 9.152 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.5739, allocations: 47.92 kB / 0.579 GB, free: 9.105 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002099/0.576, allocations: 1.325 MB / 0.5803 GB, free: 7.758 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5761, allocations: 0 / 0.5803 GB, free: 7.758 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002193/0.5783, allocations: 0.574 MB / 0.5809 GB, free: 7.188 MB / 414.1 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,dqCurrentController.PI_d.x,dqCurrentController.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,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00712/0.5854, allocations: 4.786 MB / 0.5856 GB, free: 2.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003994/0.5894, allocations: 2.631 MB / 0.5881 GB, free: 15.62 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/0.5894, allocations: 4 kB / 0.5881 GB, free: 15.62 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002315/0.5918, allocations: 1.631 MB / 0.5897 GB, free: 13.96 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002703/0.5945, allocations: 0.5158 MB / 0.5902 GB, free: 13.45 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03246/0.627, allocations: 17.98 MB / 0.6078 GB, free: 10.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001913/0.6289, allocations: 2.221 MB / 0.6099 GB, free: 8.043 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001571/0.6305, allocations: 469.9 kB / 0.6104 GB, free: 7.582 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001451/0.632, allocations: 1.14 MB / 0.6115 GB, free: 6.441 MB / 446.1 MB Notification: Performance of SimCode: time 9.22e-07/0.632, allocations: 0 / 0.6115 GB, free: 6.441 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08952/0.7215, allocations: 52.1 MB / 0.6624 GB, free: 2.773 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001884/0.7217, allocations: 221.5 kB / 0.6626 GB, free: 2.539 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.146/3.867, allocations: 0 / 0.6626 GB, free: 2.539 MB / 494.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat does not exist to compare? outputFormat=mat