Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 93.25 kB / 16.3 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001221/0.001221, allocations: 183.6 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 223.2 MB / 241.1 MB, free: 5.461 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002601/0.0002602, allocations: 6.719 kB / 300.8 MB, free: 5.953 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09728/0.09755, allocations: 50.42 MB / 351.2 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.00967/0.1073, allocations: 9.722 MB / 361 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006624/0.1139, allocations: 3.835 MB / 364.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001388/0.1153, allocations: 63.62 kB / 364.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001719/0.1171, allocations: 0.7268 MB / 365.6 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002463/0.1195, allocations: 0.8801 MB / 366.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008997/0.1205, allocations: 359.5 kB / 366.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003881/0.1243, allocations: 2.199 MB / 369 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002575/0.1269, allocations: 2.161 MB / 371.2 MB, free: 7.629 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001566/0.1285, allocations: 1.062 MB / 372.2 MB, free: 6.562 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001978/0.1305, allocations: 1.432 MB / 373.7 MB, free: 5.125 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003658/0.1309, allocations: 168 kB / 373.8 MB, free: 4.961 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006906/0.1316, allocations: 243.9 kB / 374.1 MB, free: 4.723 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008335/0.1324, allocations: 0.8879 MB / 375 MB, free: 3.832 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000726/0.1332, allocations: 0.6483 MB / 375.6 MB, free: 3.176 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00421/0.1374, allocations: 4.488 MB / 380.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.1374, allocations: 0 / 380.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.776e-06/0.1374, allocations: 4 kB / 380.1 MB, free: 14.67 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001668/0.1376, allocations: 0 / 380.1 MB, free: 14.67 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.007286/0.1449, allocations: 3.323 MB / 383.4 MB, free: 11.28 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.145, allocations: 12.03 kB / 383.4 MB, free: 11.27 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001194/0.1462, allocations: 417.8 kB / 383.8 MB, free: 10.85 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001219/0.1474, allocations: 403.5 kB / 384.2 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00453/0.1519, allocations: 2.021 MB / 386.3 MB, free: 8.379 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002325/0.1522, allocations: 237.8 kB / 386.5 MB, free: 8.145 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006219/0.1528, allocations: 299.8 kB / 386.8 MB, free: 7.852 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00722/0.1601, allocations: 3.804 MB / 390.6 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.699e-05/0.1602, allocations: 7.906 kB / 390.6 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002812/0.1605, allocations: 116 kB / 390.7 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001582/0.1606, allocations: 149.7 kB / 390.8 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006353/0.167, allocations: 3.231 MB / 394.1 MB, free: 468 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02331/0.1904, allocations: 12.16 MB / 406.2 MB, free: 3.938 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002873/0.1933, allocations: 1.941 MB / 408.2 MB, free: 1.875 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003937/0.1937, allocations: 211.5 kB / 408.4 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.406e-05/0.1938, allocations: 51.86 kB / 408.4 MB, free: 1.574 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 4.138e-06/0.1938, allocations: 0 / 408.4 MB, free: 1.574 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.01711/0.2109, allocations: 7.323 MB / 415.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.343e-05/0.211, allocations: 64.72 kB / 415.8 MB, free: 10.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003776/0.2148, allocations: 1.962 MB / 417.8 MB, free: 8.031 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003063/0.2151, allocations: 49.7 kB / 417.8 MB, free: 7.977 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001197/0.2163, allocations: 1.456 MB / 419.3 MB, free: 6.504 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000655/0.217, allocations: 0.5275 MB / 419.8 MB, free: 5.969 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001669/0.2172, allocations: 44 kB / 419.9 MB, free: 5.926 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002013/0.2174, allocations: 385.8 kB / 420.2 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001563/0.219, allocations: 0.8784 MB / 421.1 MB, free: 4.664 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001962/0.221, allocations: 1.438 MB / 422.6 MB, free: 2.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001888/0.2229, allocations: 1.119 MB / 423.7 MB, free: 1.863 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.605e-05/0.2229, allocations: 4 kB / 423.7 MB, free: 1.859 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.2564/0.4793, allocations: 2.98 MB / 426.7 MB, free: 59.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.238e-05/0.4794, allocations: 13.06 kB / 426.7 MB, free: 59.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.927e-05/0.4794, allocations: 18.38 kB / 426.7 MB, free: 59.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00091/0.4804, allocations: 365.4 kB / 427 MB, free: 59.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002087/0.4825, allocations: 483.2 kB / 427.5 MB, free: 59.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005971/0.4884, allocations: 6.034 MB / 433.6 MB, free: 56.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002683/0.4912, allocations: 135.7 kB / 433.7 MB, free: 56.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002868/0.4915, allocations: 85.73 kB / 433.8 MB, free: 56.03 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (231): * Single equations (assignments): 227 * 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%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003242/0.4947, allocations: 0.9328 MB / 434.7 MB, free: 55.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008653/0.4956, allocations: 218.2 kB / 434.9 MB, free: 55.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005765/0.5014, allocations: 2.573 MB / 437.5 MB, free: 55.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.293e-05/0.5014, allocations: 15.25 kB / 437.5 MB, free: 55.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.46e-05/0.5014, allocations: 3.188 kB / 437.5 MB, free: 55.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.204e-05/0.5015, allocations: 9.188 kB / 437.5 MB, free: 55.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0123/0.5138, allocations: 5.792 MB / 443.3 MB, free: 54.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.179e-05/0.5138, allocations: 3.969 kB / 443.3 MB, free: 54.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001127/0.515, allocations: 300.2 kB / 443.6 MB, free: 54.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008317/0.5158, allocations: 393.9 kB / 444 MB, free: 54.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/0.5159, allocations: 36.58 kB / 444 MB, free: 54.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005587/0.5215, allocations: 7.546 MB / 451.6 MB, free: 48.06 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.5216, allocations: 2.594 kB / 451.6 MB, free: 48.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005246/0.5268, allocations: 4.108 MB / 455.7 MB, free: 45.58 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00108/0.5279, allocations: 488.6 kB / 456.2 MB, free: 45.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000251/0.5282, allocations: 39.14 kB / 456.2 MB, free: 45.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009487/0.5291, allocations: 99.56 kB / 456.3 MB, free: 45.17 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001951/0.5293, allocations: 111.5 kB / 456.4 MB, free: 45.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.759e-05/0.5294, allocations: 46.83 kB / 456.4 MB, free: 45.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001875/0.5313, allocations: 1.329 MB / 457.8 MB, free: 44.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5313, allocations: 3.719 kB / 457.8 MB, free: 44.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002294/0.5336, allocations: 0.5586 MB / 458.3 MB, free: 44.3 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.der1.u) * 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 (149): * Single equations (assignments): 145 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005099/0.5387, allocations: 5.739 MB / 464.1 MB, free: 38.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003349/0.5421, allocations: 2.608 MB / 466.7 MB, free: 35.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.5421, allocations: 3.281 kB / 466.7 MB, free: 35.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001636/0.5438, allocations: 1.561 MB / 468.2 MB, free: 34.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002705/0.5465, allocations: 0.4994 MB / 468.7 MB, free: 33.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03317/0.5797, allocations: 30.22 MB / 499 MB, free: 2.031 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001804/0.5815, allocations: 2.302 MB / 0.4895 GB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002001/0.5835, allocations: 0.5376 MB / 0.49 GB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001742/0.5853, allocations: 1.19 MB / 0.4912 GB, free: 13.97 MB / 366.1 MB Notification: Performance of SimCode: time 1.183e-06/0.5853, allocations: 0 / 0.4912 GB, free: 13.97 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0997/0.685, allocations: 50.49 MB / 0.5405 GB, free: 11.93 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002342/0.6853, allocations: 236.1 kB / 0.5407 GB, free: 11.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.198/3.883, allocations: 4.062 kB / 0.5407 GB, free: 11.69 MB / 414.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat