Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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) 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(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00125/0.00125, allocations: 98.64 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00171/0.00171, allocations: 203.4 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003762/0.0003765, allocations: 8 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1267, allocations: 51.5 MB / 358.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01045/0.1372, allocations: 8.92 MB / 367.1 MB, free: 4.805 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007634/0.1449, allocations: 3.555 MB / 370.7 MB, free: 1.238 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001721/0.1466, allocations: 55.69 kB / 370.7 MB, free: 1.184 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001951/0.1486, allocations: 0.688 MB / 371.4 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2023/0.3509, allocations: 0.7701 MB / 372.2 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001267/0.3522, allocations: 300.4 kB / 372.5 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003864/0.3561, allocations: 1.919 MB / 374.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002655/0.3588, allocations: 1.85 MB / 376.3 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001981/0.3608, allocations: 0.9394 MB / 377.2 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001973/0.3628, allocations: 1.241 MB / 378.4 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003514/0.3631, allocations: 147.6 kB / 378.6 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008312/0.364, allocations: 230.4 kB / 378.8 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008717/0.3649, allocations: 0.7579 MB / 379.6 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008464/0.3657, allocations: 0.5721 MB / 380.1 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004754/0.3705, allocations: 3.882 MB / 384 MB, free: 8.855 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.3705, allocations: 1.125 kB / 384 MB, free: 8.855 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3705, allocations: 0 / 384 MB, free: 8.855 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001342/0.3706, allocations: 0 / 384 MB, free: 8.855 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.006466/0.3771, allocations: 2.878 MB / 386.9 MB, free: 7.129 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.3772, allocations: 9.219 kB / 386.9 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006982/0.3779, allocations: 361 kB / 387.3 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001134/0.379, allocations: 354.3 kB / 387.6 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003727/0.3828, allocations: 1.743 MB / 389.4 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002011/0.383, allocations: 194.6 kB / 389.5 MB, free: 6.062 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004986/0.3835, allocations: 252 kB / 389.8 MB, free: 6.059 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006024/0.3895, allocations: 3.245 MB / 393 MB, free: 5.219 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-05/0.3896, allocations: 11.72 kB / 393 MB, free: 5.211 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002305/0.3899, allocations: 101.8 kB / 393.1 MB, free: 5.211 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001478/0.39, allocations: 126.1 kB / 393.3 MB, free: 5.195 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004759/0.3948, allocations: 2.73 MB / 396 MB, free: 3.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01619/0.411, allocations: 10.47 MB / 406.5 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00186/0.4129, allocations: 1.35 MB / 407.8 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003083/0.4132, allocations: 206.9 kB / 408 MB, free: 9.059 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.661e-05/0.4133, allocations: 51.5 kB / 408.1 MB, free: 9 MB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 3.026e-06/0.4133, allocations: 0 / 408.1 MB, free: 9 MB / 318.1 MB Notification: Performance of matching and sorting (n=123): time 0.01565/0.4289, allocations: 6.959 MB / 415 MB, free: 1.934 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.526e-05/0.429, allocations: 64.41 kB / 415.1 MB, free: 1.859 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002735/0.4318, allocations: 1.731 MB / 416.8 MB, free: 132 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001097/0.4319, allocations: 45.7 kB / 416.9 MB, free: 80 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009018/0.4328, allocations: 1.27 MB / 418.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003673/0.4332, allocations: 433.6 kB / 418.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.244e-05/0.4333, allocations: 32 kB / 418.6 MB, free: 14.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.4335, allocations: 373.9 kB / 419 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001181/0.4346, allocations: 0.7768 MB / 419.7 MB, free: 13.2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001474/0.4361, allocations: 1.28 MB / 421 MB, free: 11.69 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001375/0.4375, allocations: 0.9855 MB / 422 MB, free: 10.7 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.795e-06/0.4375, allocations: 4 kB / 422 MB, free: 10.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003935/0.4415, allocations: 2.474 MB / 424.5 MB, free: 8.203 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.527e-05/0.4415, allocations: 12 kB / 424.5 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.396e-05/0.4415, allocations: 22.81 kB / 424.5 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000614/0.4422, allocations: 243.2 kB / 424.7 MB, free: 7.922 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001457/0.4436, allocations: 415.3 kB / 425.2 MB, free: 7.516 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00259/0.4462, allocations: 3.045 MB / 428.2 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001698/0.448, allocations: 143.7 kB / 428.3 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.4481, allocations: 68 kB / 428.4 MB, free: 3.996 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001678/0.4498, allocations: 0.8172 MB / 429.2 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003665/0.4502, allocations: 185.7 kB / 429.4 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003296/0.4535, allocations: 2.055 MB / 431.5 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.175e-05/0.4535, allocations: 12 kB / 431.5 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.4535, allocations: 4 kB / 431.5 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.212e-05/0.4535, allocations: 7.984 kB / 431.5 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008476/0.462, allocations: 4.717 MB / 436.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/0.462, allocations: 7.984 kB / 436.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/0.4632, allocations: 267.9 kB / 436.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005558/0.4637, allocations: 203.2 kB / 436.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000108/0.4638, allocations: 27.98 kB / 436.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002619/0.4665, allocations: 3.013 MB / 439.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.4665, allocations: 0 / 439.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005079/0.4716, allocations: 3.285 MB / 443 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00143/0.473, allocations: 426.6 kB / 443.4 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006144/0.4737, allocations: 27.98 kB / 443.4 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001276/0.4749, allocations: 95.88 kB / 443.5 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001791/0.4751, allocations: 88.84 kB / 443.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.82e-05/0.4752, allocations: 32 kB / 443.6 MB, free: 4.238 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002374/0.4776, allocations: 1.179 MB / 444.8 MB, free: 3.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4776, allocations: 0 / 444.8 MB, free: 3.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002104/0.4797, allocations: 484 kB / 445.3 MB, free: 2.598 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (121): * Single equations (assignments): 117 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00557/0.4853, allocations: 4.484 MB / 449.8 MB, free: 14.01 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003765/0.4891, allocations: 2.339 MB / 452.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/0.4891, allocations: 0 / 452.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001901/0.491, allocations: 1.351 MB / 453.5 MB, free: 10.19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002611/0.4937, allocations: 461.6 kB / 453.9 MB, free: 9.758 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03647/0.5301, allocations: 26.09 MB / 480 MB, free: 14.55 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002577/0.5328, allocations: 2.057 MB / 482.1 MB, free: 12.46 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001986/0.5348, allocations: 0.4998 MB / 482.6 MB, free: 11.96 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0016/0.5364, allocations: 1.015 MB / 483.6 MB, free: 10.95 MB / 398.1 MB Notification: Performance of SimCode: time 1.784e-06/0.5364, allocations: 4 kB / 483.6 MB, free: 10.94 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0803/0.6167, allocations: 42.63 MB / 0.5139 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001799/0.6169, allocations: 237.1 kB / 0.5141 GB, free: 0.5156 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.106/3.723, allocations: 0 / 0.5141 GB, free: 0.5156 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat