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.001028/0.001028, allocations: 104.5 kB / 17.64 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001108/0.001108, allocations: 202.4 kB / 18.58 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 60.47 kB / 306.9 MB, free: 0.6562 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0943/0.09592, allocations: 50.53 MB / 357.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.0139/0.1099, allocations: 10.94 MB / 368.4 MB, free: 3.129 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1684/0.2783, allocations: 3.673 MB / 372.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001558/0.2799, allocations: 65.84 kB / 372.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001764/0.2817, allocations: 0.8145 MB / 373 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00216/0.2839, allocations: 0.8645 MB / 373.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008632/0.2847, allocations: 459.5 kB / 374.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002636/0.2874, allocations: 2.931 MB / 377.2 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002717/0.2901, allocations: 2.732 MB / 380 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002594/0.2927, allocations: 1.381 MB / 381.3 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002074/0.2948, allocations: 1.748 MB / 383.1 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005349/0.2954, allocations: 376 kB / 383.4 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008976/0.2963, allocations: 488.4 kB / 383.9 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009306/0.2972, allocations: 1.067 MB / 385 MB, free: 6.941 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001525/0.2987, allocations: 1.676 MB / 386.7 MB, free: 5.844 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003856/0.3026, allocations: 4.832 MB / 391.5 MB, free: 3.336 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3026, allocations: 0 / 391.5 MB, free: 3.336 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3026, allocations: 7.938 kB / 391.5 MB, free: 3.328 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.625e-05/0.3027, allocations: 0 / 391.5 MB, free: 3.328 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.005751/0.3085, allocations: 3.391 MB / 394.9 MB, free: 1.004 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.3085, allocations: 13.41 kB / 394.9 MB, free: 1 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009015/0.3094, allocations: 347.5 kB / 395.3 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002878/0.3123, allocations: 1.773 MB / 397 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001675/0.3125, allocations: 193.3 kB / 397.2 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003256/0.3128, allocations: 256.4 kB / 397.5 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005174/0.318, allocations: 3.281 MB / 400.7 MB, free: 13.47 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.556e-05/0.3181, allocations: 6.594 kB / 400.7 MB, free: 13.47 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002587/0.3184, allocations: 108.9 kB / 400.9 MB, free: 13.39 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001713/0.3185, allocations: 120.7 kB / 401 MB, free: 13.37 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004667/0.3232, allocations: 2.755 MB / 403.7 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01658/0.3398, allocations: 10.48 MB / 414.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001846/0.3417, allocations: 1.368 MB / 415.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001226/0.3429, allocations: 0.7812 MB / 416.4 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002834/0.3432, allocations: 203.2 kB / 416.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.3433, allocations: 43.56 kB / 416.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 3.156e-06/0.3433, allocations: 0 / 416.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=123): time 0.01476/0.3581, allocations: 6.908 MB / 423.5 MB, free: 6.375 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.96e-05/0.3582, allocations: 64.41 kB / 423.6 MB, free: 6.297 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002365/0.3605, allocations: 1.798 MB / 425.4 MB, free: 4.5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.205e-05/0.3606, allocations: 49.64 kB / 425.4 MB, free: 4.445 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008211/0.3615, allocations: 1.274 MB / 426.7 MB, free: 3.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003098/0.3618, allocations: 430.3 kB / 427.1 MB, free: 2.742 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005126/0.3623, allocations: 295.2 kB / 427.4 MB, free: 2.449 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.3625, allocations: 305.1 kB / 427.7 MB, free: 2.148 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001129/0.3636, allocations: 0.7769 MB / 428.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001479/0.3651, allocations: 1.29 MB / 429.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002807/0.3679, allocations: 2.211 MB / 432 MB, free: 13.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.3679, allocations: 4 kB / 432 MB, free: 13.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.00384/0.3718, allocations: 2.478 MB / 434.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.3718, allocations: 12 kB / 434.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.962e-05/0.3718, allocations: 16 kB / 434.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006012/0.3725, allocations: 239.5 kB / 434.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001461/0.3739, allocations: 419.3 kB / 435.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002814/0.3768, allocations: 3.241 MB / 438.4 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001692/0.3785, allocations: 127.8 kB / 438.5 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001312/0.3786, allocations: 72 kB / 438.6 MB, free: 6.52 MB / 350.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.001731/0.3803, allocations: 0.8205 MB / 439.4 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004067/0.3808, allocations: 185.7 kB / 439.6 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003539/0.3843, allocations: 2.047 MB / 441.6 MB, free: 3.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/0.3843, allocations: 12 kB / 441.6 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.3843, allocations: 4 kB / 441.6 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/0.3844, allocations: 7.969 kB / 441.6 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008533/0.3929, allocations: 4.772 MB / 446.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.177e-06/0.3929, allocations: 4 kB / 446.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001121/0.3941, allocations: 259.6 kB / 446.7 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005437/0.3946, allocations: 207.5 kB / 446.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.146e-05/0.3947, allocations: 31.98 kB / 446.9 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002972/0.3977, allocations: 3.207 MB / 450.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.3977, allocations: 7.938 kB / 450.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005034/0.4028, allocations: 3.135 MB / 453.3 MB, free: 7.371 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00116/0.4039, allocations: 426.6 kB / 453.7 MB, free: 6.934 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000265/0.4042, allocations: 24 kB / 453.7 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.4052, allocations: 99.8 kB / 453.8 MB, free: 6.812 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.4054, allocations: 76.89 kB / 453.9 MB, free: 6.738 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.443e-05/0.4055, allocations: 36.06 kB / 453.9 MB, free: 6.703 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002045/0.4076, allocations: 1.228 MB / 455.1 MB, free: 5.484 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4076, allocations: 0 / 455.1 MB, free: 5.484 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001683/0.4093, allocations: 488 kB / 455.6 MB, free: 5.008 MB / 366.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.0003935/0.4097, allocations: 206.1 kB / 455.8 MB, free: 4.801 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005229/0.4149, allocations: 2.983 MB / 458.8 MB, free: 1.754 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.4149, allocations: 0 / 458.8 MB, free: 1.754 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00187/0.4168, allocations: 1.352 MB / 460.1 MB, free: 340 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002392/0.4192, allocations: 0.4994 MB / 460.6 MB, free: 15.85 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008815/0.428, allocations: 4.901 MB / 465.5 MB, free: 10.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001794/0.4299, allocations: 2.014 MB / 467.6 MB, free: 8.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001746/0.4316, allocations: 0.496 MB / 468.1 MB, free: 8.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004232/0.4321, allocations: 135.4 kB / 468.2 MB, free: 8.207 MB / 382.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4321, allocations: 0 / 468.2 MB, free: 8.207 MB / 382.1 MB Notification: Performance of Templates: time 0.04967/0.4817, allocations: 25.82 MB / 494 MB, free: 14.65 MB / 414.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/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