Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 176.4 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 221.5 MB / 230.3 MB, free: 7.531 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008721/0.000872, allocations: 94.19 kB / 281.2 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.389e-05/1.391e-05, allocations: 4 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08002/0.08004, allocations: 50.42 MB / 387.5 MB, free: 7.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3047/0.3848, allocations: 109.5 MB / 497 MB, free: 1.293 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002629/0.3851, allocations: 87.94 kB / 497.1 MB, free: 1.207 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1345/0.5197, allocations: 52.48 MB / 0.5367 GB, free: 12.41 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.5197, allocations: 0 / 0.5367 GB, free: 12.41 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001536/0.5198, allocations: 75.92 kB / 0.5367 GB, free: 12.34 MB / 426.7 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.004572/0.5244, allocations: 2.597 MB / 0.5393 GB, free: 9.68 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.5245, allocations: 11.98 kB / 0.5393 GB, free: 9.668 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008057/0.5253, allocations: 356 kB / 0.5396 GB, free: 9.316 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003441/0.5287, allocations: 1.904 MB / 0.5415 GB, free: 7.355 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001013/0.5289, allocations: 83.98 kB / 0.5416 GB, free: 7.273 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003247/0.5292, allocations: 151.9 kB / 0.5417 GB, free: 7.125 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004216/0.5334, allocations: 2.349 MB / 0.544 GB, free: 4.77 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00473/0.5382, allocations: 2.825 MB / 0.5468 GB, free: 1.801 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.375e-05/0.5383, allocations: 11.84 kB / 0.5468 GB, free: 1.789 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001889/0.5385, allocations: 7.953 kB / 0.5468 GB, free: 1.781 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001261/0.5386, allocations: 116.9 kB / 0.5469 GB, free: 1.664 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.205/0.7436, allocations: 9.968 MB / 0.5566 GB, free: 100.7 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001649/0.7453, allocations: 1.409 MB / 0.558 GB, free: 100.4 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/0.7463, allocations: 0.7361 MB / 0.5587 GB, free: 100.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003092/0.7466, allocations: 220.4 kB / 0.5589 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.328e-05/0.7467, allocations: 46.55 kB / 0.559 GB, free: 100.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=108): time 3.186e-06/0.7467, allocations: 0.5312 kB / 0.559 GB, free: 100.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=138): time 0.009714/0.7564, allocations: 5.164 MB / 0.564 GB, free: 99.36 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.756e-05/0.7565, allocations: 70.92 kB / 0.5641 GB, free: 99.29 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001963/0.7584, allocations: 1.292 MB / 0.5654 GB, free: 99.13 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.731e-05/0.7585, allocations: 27.02 kB / 0.5654 GB, free: 99.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007054/0.7592, allocations: 1.271 MB / 0.5666 GB, free: 98.65 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003022/0.7595, allocations: 457.7 kB / 0.5671 GB, free: 98.39 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.97e-05/0.7596, allocations: 0 / 0.5671 GB, free: 98.39 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.7597, allocations: 380.9 kB / 0.5674 GB, free: 98.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001027/0.7608, allocations: 0.7617 MB / 0.5682 GB, free: 98.09 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001233/0.762, allocations: 1.262 MB / 0.5694 GB, free: 97.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001254/0.7633, allocations: 0.986 MB / 0.5704 GB, free: 97.49 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/0.7633, allocations: 4.344 kB / 0.5704 GB, free: 97.49 MB / 426.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.003638/0.7669, allocations: 2.35 MB / 0.5727 GB, free: 97.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.406e-05/0.767, allocations: 13.03 kB / 0.5727 GB, free: 97.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-05/0.767, allocations: 20 kB / 0.5727 GB, free: 97.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005205/0.7675, allocations: 237.2 kB / 0.5729 GB, free: 97.27 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001465/0.769, allocations: 452.2 kB / 0.5733 GB, free: 97.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001792/0.7708, allocations: 2.886 MB / 0.5762 GB, free: 94.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/0.7723, allocations: 103.7 kB / 0.5763 GB, free: 94.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001273/0.7724, allocations: 72.5 kB / 0.5763 GB, free: 94.87 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 208 * 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.0002718/0.7727, allocations: 155.6 kB / 0.5765 GB, free: 94.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002799/0.773, allocations: 178.6 kB / 0.5766 GB, free: 94.66 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002853/0.7758, allocations: 2.037 MB / 0.5786 GB, free: 94.24 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.7759, allocations: 11.69 kB / 0.5786 GB, free: 94.24 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.7759, allocations: 1.062 kB / 0.5787 GB, free: 94.24 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/0.7759, allocations: 10.33 kB / 0.5787 GB, free: 94.24 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006164/0.7821, allocations: 4.511 MB / 0.5831 GB, free: 92.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.7821, allocations: 5.719 kB / 0.5831 GB, free: 92.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00112/0.7832, allocations: 302 kB / 0.5834 GB, free: 92.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004484/0.7837, allocations: 199.4 kB / 0.5835 GB, free: 92.36 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.191e-05/0.7838, allocations: 7.75 kB / 0.5836 GB, free: 92.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001555/0.7853, allocations: 2.859 MB / 0.5863 GB, free: 89.77 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.7853, allocations: 3.531 kB / 0.5864 GB, free: 89.77 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003545/0.7889, allocations: 3.345 MB / 0.5896 GB, free: 88.19 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007005/0.7896, allocations: 430 kB / 0.59 GB, free: 87.92 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002157/0.7898, allocations: 14.08 kB / 0.59 GB, free: 87.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009507/0.7908, allocations: 80.61 kB / 0.5901 GB, free: 87.92 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.7909, allocations: 91.61 kB / 0.5902 GB, free: 87.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.771e-05/0.791, allocations: 33.38 kB / 0.5902 GB, free: 87.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001127/0.7922, allocations: 0.9667 MB / 0.5912 GB, free: 87.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.7922, allocations: 2.125 kB / 0.5912 GB, free: 87.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001572/0.7937, allocations: 465.5 kB / 0.5916 GB, free: 87.49 MB / 426.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (134): * Single equations (assignments): 130 * 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.0005532/0.7943, allocations: 377.6 kB / 0.592 GB, free: 87.38 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002525/0.7968, allocations: 2.329 MB / 0.5943 GB, free: 86.31 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.7969, allocations: 0 / 0.5943 GB, free: 86.31 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001337/0.7982, allocations: 1.358 MB / 0.5956 GB, free: 85.57 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001617/0.7998, allocations: 378 kB / 0.5959 GB, free: 85.48 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005118/0.805, allocations: 3.9 MB / 0.5998 GB, free: 83.88 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001243/0.8062, allocations: 2.072 MB / 0.6018 GB, free: 82.91 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001293/0.8075, allocations: 0.518 MB / 0.6023 GB, free: 82.87 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003643/0.8079, allocations: 133.6 kB / 0.6024 GB, free: 82.86 MB / 426.7 MB Notification: Performance of SimCode: time 3.21e-07/0.8079, allocations: 0 / 0.6024 GB, free: 82.86 MB / 426.7 MB Notification: Performance of Templates: time 0.03075/0.8386, allocations: 21.74 MB / 0.6236 GB, free: 77.25 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches