Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001468/0.001468, allocations: 186 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.886/1.886, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001155/0.001155, allocations: 97.92 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003808/0.0003809, allocations: 12 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.331/0.3314, allocations: 47.56 MB / 374.5 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1861/0.5176, allocations: 113.3 MB / 487.8 MB, free: 15.4 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003562/0.5181, allocations: 91.95 kB / 487.9 MB, free: 15.31 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.506/1.024, allocations: 58.34 MB / 0.5335 GB, free: 83.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.635e-06/1.024, allocations: 0 / 0.5335 GB, free: 83.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000355/1.025, allocations: 83.88 kB / 0.5336 GB, free: 83.29 MB / 378.7 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.01241/1.037, allocations: 3.26 MB / 0.5367 GB, free: 79.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/1.037, allocations: 8.031 kB / 0.5367 GB, free: 79.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002386/1.039, allocations: 399.6 kB / 0.5371 GB, free: 79.56 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008025/1.048, allocations: 2.196 MB / 0.5393 GB, free: 77.31 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002592/1.048, allocations: 213.7 kB / 0.5395 GB, free: 77.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001119/1.049, allocations: 279.9 kB / 0.5397 GB, free: 76.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01039/1.059, allocations: 3.664 MB / 0.5433 GB, free: 73.01 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001488/1.06, allocations: 11.91 kB / 0.5433 GB, free: 73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005443/1.06, allocations: 120 kB / 0.5434 GB, free: 72.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001676/1.06, allocations: 129.5 kB / 0.5436 GB, free: 72.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009244/1.07, allocations: 2.95 MB / 0.5464 GB, free: 69.79 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02958/1.099, allocations: 11.69 MB / 0.5579 GB, free: 57.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003962/1.103, allocations: 1.971 MB / 0.5598 GB, free: 55.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004954/1.104, allocations: 229.2 kB / 0.56 GB, free: 55.42 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.156e-05/1.104, allocations: 47.81 kB / 0.5601 GB, free: 55.37 MB / 378.7 MB Notification: Performance of pre-optimization done (n=128): time 4.077e-06/1.104, allocations: 0 / 0.5601 GB, free: 55.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=149): time 0.02527/1.129, allocations: 7.627 MB / 0.5675 GB, free: 47.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.292e-05/1.129, allocations: 68.72 kB / 0.5676 GB, free: 47.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003962/1.133, allocations: 1.738 MB / 0.5693 GB, free: 45.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003911/1.134, allocations: 57.7 kB / 0.5693 GB, free: 45.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009265/1.135, allocations: 1.322 MB / 0.5706 GB, free: 44.37 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006608/1.135, allocations: 0.5083 MB / 0.5711 GB, free: 43.85 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000204/1.135, allocations: 36 kB / 0.5711 GB, free: 43.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001396/1.136, allocations: 386.8 kB / 0.5715 GB, free: 43.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002153/1.138, allocations: 0.8862 MB / 0.5724 GB, free: 42.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002604/1.14, allocations: 1.419 MB / 0.5738 GB, free: 40.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002744/1.143, allocations: 1.119 MB / 0.5749 GB, free: 39.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.535e-05/1.143, allocations: 8 kB / 0.5749 GB, free: 39.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.007712/1.151, allocations: 2.92 MB / 0.5777 GB, free: 36.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.92e-05/1.151, allocations: 12 kB / 0.5777 GB, free: 36.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.685e-05/1.151, allocations: 16 kB / 0.5777 GB, free: 36.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002257/1.153, allocations: 0.5527 MB / 0.5783 GB, free: 36.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003209/1.157, allocations: 439.3 kB / 0.5787 GB, free: 35.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01077/1.167, allocations: 6.482 MB / 0.585 GB, free: 29.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002944/1.17, allocations: 139.7 kB / 0.5852 GB, free: 28.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003496/1.171, allocations: 79.98 kB / 0.5852 GB, free: 28.84 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * 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 (209): * Single equations (assignments): 206 * 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: 2 * 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: 2 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002381/1.173, allocations: 0.913 MB / 0.5861 GB, free: 27.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007061/1.174, allocations: 209.4 kB / 0.5863 GB, free: 27.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007166/1.181, allocations: 2.684 MB / 0.589 GB, free: 25.01 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.987e-05/1.181, allocations: 16 kB / 0.589 GB, free: 24.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/1.181, allocations: 4 kB / 0.589 GB, free: 24.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.699e-05/1.181, allocations: 11.92 kB / 0.589 GB, free: 24.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01546/1.197, allocations: 5.752 MB / 0.5946 GB, free: 19.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.719e-05/1.197, allocations: 4 kB / 0.5946 GB, free: 19.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002218/1.199, allocations: 255.6 kB / 0.5948 GB, free: 18.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002634/1.202, allocations: 0.5803 MB / 0.5954 GB, free: 18.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003121/1.202, allocations: 47.92 kB / 0.5955 GB, free: 18.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01277/1.215, allocations: 8.204 MB / 0.6035 GB, free: 9.609 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/1.215, allocations: 4 kB / 0.6035 GB, free: 9.605 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01089/1.226, allocations: 4.059 MB / 0.6074 GB, free: 5.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001748/1.228, allocations: 0.4944 MB / 0.6079 GB, free: 4.895 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008303/1.228, allocations: 31.95 kB / 0.608 GB, free: 4.863 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002565/1.231, allocations: 103.9 kB / 0.6081 GB, free: 4.762 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004085/1.232, allocations: 101.2 kB / 0.6081 GB, free: 4.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001501/1.232, allocations: 48 kB / 0.6082 GB, free: 4.613 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002876/1.235, allocations: 1.326 MB / 0.6095 GB, free: 3.266 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.71e-07/1.235, allocations: 0 / 0.6095 GB, free: 3.266 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003075/1.238, allocations: 0.6173 MB / 0.6101 GB, free: 2.648 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.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 (123): * Single equations (assignments): 120 * 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 {(5,76.0%) 20,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008554/1.239, allocations: 413.2 kB / 0.6105 GB, free: 2.246 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006041/1.245, allocations: 2.641 MB / 0.6131 GB, free: 15.56 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.914e-06/1.245, allocations: 0 / 0.6131 GB, free: 15.56 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004171/1.249, allocations: 1.593 MB / 0.6146 GB, free: 13.93 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004015/1.253, allocations: 478.8 kB / 0.6151 GB, free: 13.46 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01645/1.269, allocations: 6.871 MB / 0.6218 GB, free: 6.535 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003228/1.273, allocations: 2.253 MB / 0.624 GB, free: 4.25 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001179/1.274, allocations: 159.4 kB / 0.6241 GB, free: 4.094 MB / 394.7 MB Notification: Performance of SimCode: time 1.092e-06/1.274, allocations: 4 kB / 0.6241 GB, free: 4.09 MB / 394.7 MB Notification: Performance of Templates: time 0.4155/1.689, allocations: 75.37 MB / 0.6977 GB, free: 76.45 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches