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: 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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00152/0.00152, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001569/0.001569, allocations: 202.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 59.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2422, allocations: 50.55 MB / 409.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01203/0.2543, allocations: 10.95 MB / 420.9 MB, free: 6.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006716/0.261, allocations: 3.676 MB / 424.6 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001841/0.2629, allocations: 67.69 kB / 424.6 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002338/0.2653, allocations: 0.8189 MB / 425.5 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003115/0.2684, allocations: 0.858 MB / 426.3 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001383/0.2698, allocations: 467.3 kB / 426.8 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003761/0.2736, allocations: 2.935 MB / 429.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003108/0.2767, allocations: 2.735 MB / 432.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001898/0.2787, allocations: 1.382 MB / 433.8 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002158/0.2808, allocations: 1.763 MB / 435.6 MB, free: 7.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004723/0.2813, allocations: 372 kB / 435.9 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008209/0.2821, allocations: 483.8 kB / 436.4 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009103/0.2831, allocations: 1.079 MB / 437.5 MB, free: 5.867 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001605/0.2847, allocations: 1.668 MB / 439.2 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004424/0.2891, allocations: 4.896 MB / 444.1 MB, free: 15.28 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2891, allocations: 0 / 444.1 MB, free: 15.28 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2892, allocations: 4 kB / 444.1 MB, free: 15.28 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.012e-05/0.2892, allocations: 0 / 444.1 MB, free: 15.28 MB / 366.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.006429/0.2957, allocations: 3.398 MB / 447.5 MB, free: 11.81 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.2957, allocations: 8.031 kB / 447.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009235/0.2967, allocations: 349.1 kB / 447.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003292/0.3, allocations: 1.826 MB / 449.6 MB, free: 9.578 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001463/0.3001, allocations: 189.4 kB / 449.8 MB, free: 9.391 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003564/0.3005, allocations: 255.8 kB / 450.1 MB, free: 9.141 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005124/0.3056, allocations: 3.287 MB / 453.4 MB, free: 5.773 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.479e-05/0.3057, allocations: 7.906 kB / 453.4 MB, free: 5.766 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002191/0.3059, allocations: 100 kB / 453.5 MB, free: 5.668 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001206/0.3061, allocations: 120.9 kB / 453.6 MB, free: 5.547 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004354/0.3104, allocations: 2.756 MB / 456.3 MB, free: 2.777 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0148/0.3253, allocations: 10.38 MB / 466.7 MB, free: 8.039 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001796/0.3271, allocations: 1.365 MB / 468.1 MB, free: 6.605 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001148/0.3283, allocations: 0.76 MB / 468.8 MB, free: 5.844 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002861/0.3286, allocations: 216.2 kB / 469.1 MB, free: 5.598 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/0.3286, allocations: 43.56 kB / 469.1 MB, free: 5.547 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 2.825e-06/0.3286, allocations: 0 / 469.1 MB, free: 5.547 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01438/0.343, allocations: 6.898 MB / 476 MB, free: 14.53 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.519e-05/0.3431, allocations: 64.41 kB / 476.1 MB, free: 14.46 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00238/0.3455, allocations: 1.794 MB / 477.8 MB, free: 12.66 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.807e-05/0.3456, allocations: 45.7 kB / 477.9 MB, free: 12.61 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001027/0.3466, allocations: 1.271 MB / 479.2 MB, free: 11.33 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000436/0.347, allocations: 441.7 kB / 479.6 MB, free: 10.89 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004973/0.3475, allocations: 295.3 kB / 479.9 MB, free: 10.59 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.3477, allocations: 305.1 kB / 480.2 MB, free: 10.29 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001207/0.3489, allocations: 0.7808 MB / 481 MB, free: 9.512 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001567/0.3504, allocations: 1.28 MB / 482.2 MB, free: 8.008 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00282/0.3533, allocations: 2.214 MB / 484.5 MB, free: 5.562 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/0.3533, allocations: 4 kB / 484.5 MB, free: 5.559 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004223/0.3575, allocations: 2.478 MB / 486.9 MB, free: 3.059 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.81e-05/0.3576, allocations: 12 kB / 487 MB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.317e-05/0.3576, allocations: 16 kB / 487 MB, free: 3.031 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006329/0.3583, allocations: 251.7 kB / 487.2 MB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001428/0.3597, allocations: 415.3 kB / 487.6 MB, free: 2.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002783/0.3625, allocations: 3.226 MB / 490.8 MB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001415/0.3639, allocations: 135.7 kB / 491 MB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001232/0.3641, allocations: 72 kB / 491 MB, free: 14.64 MB / 414.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 (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001327/0.3654, allocations: 0.8211 MB / 491.9 MB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003634/0.3658, allocations: 193.7 kB / 492.1 MB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003298/0.3691, allocations: 2.035 MB / 494.1 MB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/0.3691, allocations: 12.14 kB / 494.1 MB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.3691, allocations: 8 kB / 494.1 MB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.512e-05/0.3691, allocations: 11.95 kB / 494.1 MB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007421/0.3766, allocations: 4.745 MB / 498.9 MB, free: 6.688 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/0.3766, allocations: 4 kB / 498.9 MB, free: 6.684 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001063/0.3777, allocations: 259.6 kB / 499.1 MB, free: 6.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005042/0.3782, allocations: 207.5 kB / 499.3 MB, free: 6.215 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.161e-05/0.3783, allocations: 27.98 kB / 499.4 MB, free: 6.188 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002455/0.3807, allocations: 3.204 MB / 0.4908 GB, free: 2.703 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.3808, allocations: 4.031 kB / 0.4908 GB, free: 2.699 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004273/0.385, allocations: 3.135 MB / 0.4938 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001012/0.3861, allocations: 426.7 kB / 0.4943 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002148/0.3863, allocations: 20 kB / 0.4943 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009377/0.3872, allocations: 99.8 kB / 0.4944 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000173/0.3874, allocations: 92.89 kB / 0.4945 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.628e-05/0.3875, allocations: 32 kB / 0.4945 GB, free: 14.83 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001789/0.3893, allocations: 1.224 MB / 0.4957 GB, free: 13.62 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3893, allocations: 0 / 0.4957 GB, free: 13.62 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001459/0.3908, allocations: 492 kB / 0.4961 GB, free: 13.14 MB / 430.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 (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003638/0.3912, allocations: 190.3 kB / 0.4963 GB, free: 12.94 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003296/0.3945, allocations: 2.353 MB / 0.4986 GB, free: 10.52 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.3945, allocations: 0 / 0.4986 GB, free: 10.52 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001699/0.3962, allocations: 1.339 MB / 0.4999 GB, free: 9.113 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002191/0.3984, allocations: 0.4987 MB / 0.5004 GB, free: 8.629 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007291/0.4057, allocations: 4.916 MB / 0.5052 GB, free: 3.645 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001458/0.4072, allocations: 1.974 MB / 0.5072 GB, free: 1.641 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006389/0.4078, allocations: 155.4 kB / 0.5073 GB, free: 1.488 MB / 430.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4079, allocations: 0 / 0.5073 GB, free: 1.488 MB / 430.1 MB Notification: Performance of Templates: time 0.4916/0.8995, allocations: 83.33 MB / 0.5887 GB, free: 85.91 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches