Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001054/0.001054, allocations: 198.2 kB / 17.05 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 226.6 MB / 244.3 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007607/0.0007608, allocations: 100.7 kB / 296.4 MB, free: 6.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001961/0.0001961, allocations: 7.938 kB / 356.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2012/0.2014, allocations: 51.28 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.007338/0.2088, allocations: 10.5 MB / 418 MB, free: 17.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005268/0.2141, allocations: 3.799 MB / 421.8 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00115/0.2153, allocations: 67.62 kB / 421.9 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001333/0.2166, allocations: 0.7027 MB / 422.6 MB, free: 12.72 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001793/0.2184, allocations: 0.8002 MB / 423.4 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007704/0.2192, allocations: 371.5 kB / 423.7 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002178/0.2214, allocations: 3.368 MB / 427.1 MB, free: 8.172 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001789/0.2232, allocations: 2.165 MB / 429.3 MB, free: 5.969 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00112/0.2243, allocations: 1.148 MB / 430.4 MB, free: 4.816 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00124/0.2256, allocations: 1.599 MB / 432 MB, free: 3.211 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002542/0.2259, allocations: 172 kB / 432.2 MB, free: 3.043 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005487/0.2264, allocations: 259.9 kB / 432.4 MB, free: 2.789 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000582/0.227, allocations: 0.9228 MB / 433.4 MB, free: 1.863 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003979/0.2274, allocations: 0.6405 MB / 434 MB, free: 1.215 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003156/0.2306, allocations: 4.554 MB / 438.6 MB, free: 12.65 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.2306, allocations: 4 kB / 438.6 MB, free: 12.64 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2306, allocations: 0 / 438.6 MB, free: 12.64 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.576e-05/0.2307, allocations: 0 / 438.6 MB, free: 12.64 MB / 314.7 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.005789/0.2365, allocations: 3.335 MB / 441.9 MB, free: 9.242 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.2365, allocations: 12.03 kB / 441.9 MB, free: 9.23 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009607/0.2375, allocations: 419.4 kB / 442.3 MB, free: 8.816 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002987/0.2405, allocations: 2.002 MB / 444.3 MB, free: 6.762 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000174/0.2407, allocations: 229.9 kB / 444.5 MB, free: 6.535 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003683/0.2411, allocations: 295.9 kB / 444.8 MB, free: 6.246 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005651/0.2467, allocations: 3.823 MB / 448.7 MB, free: 2.344 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.927e-05/0.2468, allocations: 11.89 kB / 448.7 MB, free: 2.332 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000248/0.247, allocations: 120 kB / 448.8 MB, free: 2.215 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001363/0.2472, allocations: 153.6 kB / 448.9 MB, free: 2.062 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004923/0.2521, allocations: 3.235 MB / 452.2 MB, free: 14.81 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01718/0.2693, allocations: 12.21 MB / 464.4 MB, free: 2.242 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002304/0.2716, allocations: 1.936 MB / 466.3 MB, free: 196 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001729/0.2734, allocations: 1.164 MB / 467.5 MB, free: 15.02 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002811/0.2737, allocations: 207.5 kB / 467.7 MB, free: 14.78 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.2737, allocations: 51.88 kB / 467.7 MB, free: 14.72 MB / 346.7 MB Notification: Performance of pre-optimization done (n=139): time 3.336e-06/0.2737, allocations: 0 / 467.7 MB, free: 14.72 MB / 346.7 MB Notification: Performance of matching and sorting (n=155): time 0.01254/0.2863, allocations: 7.04 MB / 474.8 MB, free: 7.551 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.107e-05/0.2864, allocations: 68.7 kB / 474.8 MB, free: 7.473 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002712/0.2891, allocations: 2.02 MB / 476.9 MB, free: 5.414 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000125/0.2892, allocations: 49.7 kB / 476.9 MB, free: 5.359 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009677/0.2902, allocations: 1.456 MB / 478.4 MB, free: 3.887 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004176/0.2906, allocations: 0.5314 MB / 478.9 MB, free: 3.348 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.072e-05/0.2907, allocations: 40 kB / 478.9 MB, free: 3.309 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.2909, allocations: 381.9 kB / 479.3 MB, free: 2.93 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00128/0.2922, allocations: 0.8784 MB / 480.2 MB, free: 2.051 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001609/0.2938, allocations: 1.442 MB / 481.6 MB, free: 368 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001557/0.2954, allocations: 1.103 MB / 482.7 MB, free: 15.26 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/0.2954, allocations: 8 kB / 482.7 MB, free: 15.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004503/0.2999, allocations: 3.002 MB / 485.7 MB, free: 12.21 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.786e-05/0.2999, allocations: 15.98 kB / 485.8 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.133e-05/0.3, allocations: 20 kB / 485.8 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008512/0.3008, allocations: 387.6 kB / 486.2 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001587/0.3024, allocations: 467.2 kB / 486.6 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005506/0.3079, allocations: 6.154 MB / 492.8 MB, free: 4.766 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001747/0.3097, allocations: 131.8 kB / 492.9 MB, free: 4.637 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/0.3099, allocations: 84 kB / 493 MB, free: 4.555 MB / 362.7 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 (228): * Single equations (assignments): 224 * 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%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001667/0.3115, allocations: 0.9344 MB / 493.9 MB, free: 3.609 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003975/0.3119, allocations: 217.3 kB / 494.1 MB, free: 3.395 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004059/0.316, allocations: 2.598 MB / 496.7 MB, free: 0.7539 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/0.316, allocations: 16 kB / 496.7 MB, free: 0.7383 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.3161, allocations: 4 kB / 496.7 MB, free: 0.7344 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.749e-05/0.3161, allocations: 7.969 kB / 496.7 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008892/0.325, allocations: 5.855 MB / 0.4908 GB, free: 10.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.196e-06/0.325, allocations: 4 kB / 0.4908 GB, free: 10.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001183/0.3262, allocations: 291.6 kB / 0.4911 GB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009601/0.3272, allocations: 403.4 kB / 0.4915 GB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.654e-05/0.3273, allocations: 47.98 kB / 0.4915 GB, free: 9.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0066/0.3339, allocations: 7.569 MB / 0.4989 GB, free: 1.875 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.3339, allocations: 8.188 kB / 0.4989 GB, free: 1.867 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1843/0.5182, allocations: 3.821 MB / 0.5027 GB, free: 88.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001418/0.5197, allocations: 0.4887 MB / 0.5031 GB, free: 87.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003038/0.52, allocations: 34.05 kB / 0.5032 GB, free: 87.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001067/0.5211, allocations: 94.02 kB / 0.5033 GB, free: 87.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002588/0.5214, allocations: 120.2 kB / 0.5034 GB, free: 87.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/0.5215, allocations: 47.28 kB / 0.5034 GB, free: 87.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002324/0.5238, allocations: 1.376 MB / 0.5048 GB, free: 87.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5238, allocations: 0 / 0.5048 GB, free: 87.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002143/0.526, allocations: 0.5646 MB / 0.5053 GB, free: 87.4 MB / 378.7 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 (146): * Single equations (assignments): 142 * 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%) 6,(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.0003764/0.5264, allocations: 172.8 kB / 0.5055 GB, free: 87.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003808/0.5302, allocations: 2.622 MB / 0.508 GB, free: 86.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.5302, allocations: 1.5 kB / 0.508 GB, free: 86.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002015/0.5322, allocations: 1.567 MB / 0.5096 GB, free: 85.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002869/0.5351, allocations: 0.5432 MB / 0.5101 GB, free: 85.13 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009733/0.5449, allocations: 7.077 MB / 0.517 GB, free: 81.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001655/0.5466, allocations: 2.215 MB / 0.5192 GB, free: 80.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008278/0.5474, allocations: 175.5 kB / 0.5193 GB, free: 80.22 MB / 378.7 MB Notification: Performance of SimCode: time 1.302e-06/0.5474, allocations: 0 / 0.5193 GB, free: 80.22 MB / 378.7 MB Notification: Performance of Templates: time 0.09102/0.6385, allocations: 94.24 MB / 0.6114 GB, free: 2.617 MB / 394.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches