Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009497/0.0009497, allocations: 92.77 kB / 17.31 MB, free: 6.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 179.7 kB / 18.21 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.122/1.122, allocations: 223.3 MB / 242.3 MB, free: 260 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002017/0.0002018, allocations: 7.938 kB / 302.1 MB, free: 6.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0708/0.07102, allocations: 50.41 MB / 352.5 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.009898/0.08093, allocations: 11.19 MB / 363.7 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005768/0.08671, allocations: 3.906 MB / 367.6 MB, free: 4.562 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001287/0.08801, allocations: 67.69 kB / 367.7 MB, free: 4.496 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00166/0.08968, allocations: 0.7573 MB / 368.4 MB, free: 3.734 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002154/0.09184, allocations: 0.8665 MB / 369.3 MB, free: 2.863 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008621/0.09271, allocations: 495.5 kB / 369.8 MB, free: 2.379 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1201/0.2129, allocations: 3.696 MB / 373.5 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003221/0.2161, allocations: 2.602 MB / 376.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001651/0.2178, allocations: 1.157 MB / 377.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002407/0.2202, allocations: 1.667 MB / 378.9 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006861/0.2209, allocations: 169.6 kB / 379.1 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009914/0.2219, allocations: 292.9 kB / 379.3 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008251/0.2227, allocations: 0.9382 MB / 380.3 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001257/0.224, allocations: 1.598 MB / 381.9 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00301/0.227, allocations: 4.543 MB / 386.4 MB, free: 8.027 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.227, allocations: 0 / 386.4 MB, free: 8.027 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.227, allocations: 0 / 386.4 MB, free: 8.027 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.214e-05/0.2271, allocations: 4 kB / 386.4 MB, free: 8.023 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.00479/0.2319, allocations: 3.303 MB / 389.7 MB, free: 6.027 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.2319, allocations: 9.438 kB / 389.7 MB, free: 6.027 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007911/0.2327, allocations: 410.1 kB / 390.1 MB, free: 5.824 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002334/0.2351, allocations: 2.065 MB / 392.2 MB, free: 4.754 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000143/0.2352, allocations: 231.9 kB / 392.4 MB, free: 4.648 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003499/0.2356, allocations: 299.7 kB / 392.7 MB, free: 4.547 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00473/0.2403, allocations: 3.848 MB / 396.6 MB, free: 2.297 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.956e-05/0.2404, allocations: 17.83 kB / 396.6 MB, free: 2.285 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002238/0.2406, allocations: 120.7 kB / 396.7 MB, free: 2.195 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.724e-05/0.2407, allocations: 150.1 kB / 396.9 MB, free: 2.172 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003842/0.2445, allocations: 3.249 MB / 400.1 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01478/0.2593, allocations: 12.22 MB / 412.3 MB, free: 4.344 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002161/0.2615, allocations: 1.94 MB / 414.3 MB, free: 2.289 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001677/0.2632, allocations: 1.168 MB / 415.4 MB, free: 1.121 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000261/0.2635, allocations: 211.4 kB / 415.6 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/0.2635, allocations: 47.88 kB / 415.7 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of pre-optimization done (n=139): time 2.836e-06/0.2635, allocations: 0 / 415.7 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of matching and sorting (n=155): time 0.01133/0.2749, allocations: 7.056 MB / 422.7 MB, free: 9.664 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.234e-05/0.2749, allocations: 64.72 kB / 422.8 MB, free: 9.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002399/0.2773, allocations: 2.028 MB / 424.8 MB, free: 7.523 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.554e-05/0.2774, allocations: 49.7 kB / 424.9 MB, free: 7.469 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008844/0.2783, allocations: 1.46 MB / 426.3 MB, free: 5.996 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003736/0.2787, allocations: 0.534 MB / 426.9 MB, free: 5.469 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001939/0.2789, allocations: 157.6 kB / 427 MB, free: 5.309 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.836e-05/0.279, allocations: 313.1 kB / 427.3 MB, free: 5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001207/0.2802, allocations: 0.8745 MB / 428.2 MB, free: 4.125 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00155/0.2818, allocations: 1.453 MB / 429.7 MB, free: 2.434 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002947/0.2847, allocations: 2.512 MB / 432.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.2847, allocations: 4 kB / 432.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004155/0.2889, allocations: 3.019 MB / 435.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.2889, allocations: 12 kB / 435.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.24e-05/0.289, allocations: 16 kB / 435.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000789/0.2897, allocations: 400.6 kB / 435.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001451/0.2912, allocations: 465.7 kB / 436.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005193/0.2964, allocations: 6.154 MB / 442.2 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001153/0.2976, allocations: 139.8 kB / 442.4 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/0.2977, allocations: 87.98 kB / 442.4 MB, free: 5.203 MB / 350.1 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 (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001217/0.2989, allocations: 0.9306 MB / 443.4 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002817/0.2992, allocations: 217.3 kB / 443.6 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003803/0.303, allocations: 2.595 MB / 446.2 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.3031, allocations: 16 kB / 446.2 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.3031, allocations: 4 kB / 446.2 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.3031, allocations: 7.969 kB / 446.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007932/0.311, allocations: 5.87 MB / 452.1 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.311, allocations: 4 kB / 452.1 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.3121, allocations: 289.9 kB / 452.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008765/0.313, allocations: 405.7 kB / 452.8 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.612e-05/0.3131, allocations: 39.98 kB / 452.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006168/0.3193, allocations: 7.603 MB / 460.4 MB, free: 2.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.3193, allocations: 7.703 kB / 460.4 MB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004881/0.3242, allocations: 3.841 MB / 464.3 MB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006715/0.3249, allocations: 494.1 kB / 464.7 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002393/0.3251, allocations: 36 kB / 464.8 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009758/0.3261, allocations: 103.9 kB / 464.9 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001829/0.3263, allocations: 108 kB / 465 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.929e-05/0.3264, allocations: 51.98 kB / 465 MB, free: 13.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001733/0.3281, allocations: 1.39 MB / 466.4 MB, free: 12.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3281, allocations: 0 / 466.4 MB, free: 12.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001498/0.3296, allocations: 0.5625 MB / 467 MB, free: 11.98 MB / 382.1 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%), (2,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.0003474/0.33, allocations: 209 kB / 467.2 MB, free: 11.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003299/0.3333, allocations: 2.627 MB / 469.8 MB, free: 9.164 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.3333, allocations: 112 / 469.8 MB, free: 9.164 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001911/0.3352, allocations: 1.581 MB / 471.4 MB, free: 7.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003025/0.3383, allocations: 0.5227 MB / 471.9 MB, free: 7.051 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008742/0.347, allocations: 7.41 MB / 479.3 MB, free: 15.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00184/0.3489, allocations: 2.22 MB / 481.5 MB, free: 13.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005152/0.3494, allocations: 179.3 kB / 481.7 MB, free: 13.14 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3494, allocations: 0 / 481.7 MB, free: 13.14 MB / 398.1 MB Notification: Performance of Templates: time 0.2158/0.5652, allocations: 94.14 MB / 0.5624 GB, free: 135.9 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches