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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 191.5 kB / 24.5 MB, free: 4.09 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 225.6 MB / 253.3 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 39.94 kB / 371.2 MB, free: 9.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.248, allocations: 52.19 MB / 423.4 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01389/0.2619, allocations: 11.02 MB / 434.5 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007184/0.2691, allocations: 3.625 MB / 438.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001577/0.2706, allocations: 83.44 kB / 438.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001934/0.2726, allocations: 0.8853 MB / 439.1 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002569/0.2752, allocations: 0.9165 MB / 440 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001027/0.2762, allocations: 471.2 kB / 440.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003623/0.2798, allocations: 2.939 MB / 443.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002177/0.282, allocations: 1.56 MB / 444.9 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001914/0.2839, allocations: 1.406 MB / 446.3 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002852/0.2867, allocations: 1.806 MB / 448.1 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005699/0.2873, allocations: 372 kB / 448.5 MB, free: 5.324 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009614/0.2883, allocations: 475.9 kB / 449 MB, free: 4.859 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001163/0.2894, allocations: 1.099 MB / 450.1 MB, free: 3.758 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002068/0.2915, allocations: 1.672 MB / 451.7 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005761/0.2973, allocations: 4.894 MB / 456.6 MB, free: 13.17 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.2973, allocations: 0 / 456.6 MB, free: 13.17 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.2973, allocations: 0 / 456.6 MB, free: 13.17 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001603/0.2974, allocations: 0 / 456.6 MB, free: 13.17 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.008424/0.3059, allocations: 3.401 MB / 460 MB, free: 9.715 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.3059, allocations: 12.03 kB / 460 MB, free: 9.703 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.416e-05/0.306, allocations: 65.22 kB / 460.1 MB, free: 9.637 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004948/0.3065, allocations: 363 kB / 460.5 MB, free: 9.273 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00087/0.3074, allocations: 358.8 kB / 460.8 MB, free: 8.922 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003409/0.3108, allocations: 1.752 MB / 462.6 MB, free: 7.133 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001641/0.3109, allocations: 189 kB / 462.7 MB, free: 6.945 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003872/0.3113, allocations: 248 kB / 463 MB, free: 6.703 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005393/0.3167, allocations: 3.287 MB / 466.3 MB, free: 3.336 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.296e-05/0.3168, allocations: 4 kB / 466.3 MB, free: 3.332 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002229/0.317, allocations: 100 kB / 466.4 MB, free: 3.234 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001413/0.3171, allocations: 128.9 kB / 466.5 MB, free: 3.105 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00459/0.3217, allocations: 2.752 MB / 469.3 MB, free: 348 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01623/0.338, allocations: 10.24 MB / 479.5 MB, free: 5.734 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001846/0.3398, allocations: 1.07 MB / 480.6 MB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001195/0.341, allocations: 0.6954 MB / 481.3 MB, free: 3.949 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002454/0.3412, allocations: 58.03 kB / 481.3 MB, free: 3.895 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.353e-05/0.3413, allocations: 43.56 kB / 481.4 MB, free: 3.84 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 3.556e-06/0.3413, allocations: 0 / 481.4 MB, free: 3.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01537/0.3567, allocations: 6.64 MB / 488 MB, free: 13.17 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.636e-05/0.3567, allocations: 68.39 kB / 488.1 MB, free: 13.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002794/0.3595, allocations: 1.793 MB / 489.9 MB, free: 11.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001117/0.3596, allocations: 45.7 kB / 489.9 MB, free: 11.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001061/0.3607, allocations: 1.298 MB / 491.2 MB, free: 9.934 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004363/0.3611, allocations: 456.2 kB / 491.6 MB, free: 9.484 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004955/0.3616, allocations: 295.4 kB / 491.9 MB, free: 9.188 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.3617, allocations: 309.1 kB / 492.2 MB, free: 8.883 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001226/0.363, allocations: 0.773 MB / 493 MB, free: 8.109 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001631/0.3646, allocations: 1.296 MB / 494.3 MB, free: 6.586 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003019/0.3676, allocations: 2.206 MB / 496.5 MB, free: 4.148 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.231e-05/0.3676, allocations: 8 kB / 496.5 MB, free: 4.141 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004531/0.3722, allocations: 2.483 MB / 499 MB, free: 1.637 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.252e-05/0.3722, allocations: 12.69 kB / 499 MB, free: 1.625 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.599e-05/0.3722, allocations: 20 kB / 499 MB, free: 1.605 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006622/0.3729, allocations: 235.3 kB / 499.3 MB, free: 1.363 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001453/0.3743, allocations: 423.3 kB / 499.7 MB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002975/0.3773, allocations: 3.024 MB / 0.4909 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001554/0.3789, allocations: 131.7 kB / 0.491 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001279/0.379, allocations: 71.98 kB / 0.4911 GB, free: 13.5 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.001565/0.3806, allocations: 0.8252 MB / 0.4919 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005036/0.3811, allocations: 194.7 kB / 0.4921 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003637/0.3847, allocations: 2.035 MB / 0.4941 GB, free: 10.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-05/0.3847, allocations: 12 kB / 0.4941 GB, free: 10.4 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/0.3847, allocations: 7.938 kB / 0.4941 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.667e-05/0.3847, allocations: 11.91 kB / 0.4941 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00833/0.3931, allocations: 4.701 MB / 0.4987 GB, free: 5.578 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.3931, allocations: 0 / 0.4987 GB, free: 5.578 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001108/0.3942, allocations: 263.6 kB / 0.499 GB, free: 5.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005671/0.3948, allocations: 207.5 kB / 0.4992 GB, free: 5.105 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.633e-05/0.3948, allocations: 31.92 kB / 0.4992 GB, free: 5.074 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002801/0.3976, allocations: 3.008 MB / 0.5021 GB, free: 1.836 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.3976, allocations: 4 kB / 0.5021 GB, free: 1.832 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005012/0.4027, allocations: 3.14 MB / 0.5052 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001023/0.4037, allocations: 358.5 kB / 0.5055 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002491/0.4039, allocations: 27.94 kB / 0.5056 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009251/0.4049, allocations: 95.94 kB / 0.5057 GB, free: 14.17 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001874/0.405, allocations: 84.83 kB / 0.5057 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.723e-05/0.4051, allocations: 32 kB / 0.5058 GB, free: 14.05 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001945/0.4071, allocations: 1.224 MB / 0.507 GB, free: 12.84 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4071, allocations: 0 / 0.507 GB, free: 12.84 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001674/0.4087, allocations: 491.9 kB / 0.5074 GB, free: 12.36 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.005134/0.4139, allocations: 3.784 MB / 0.5111 GB, free: 8.504 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003565/0.4174, allocations: 2.125 MB / 0.5132 GB, free: 6.348 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.4174, allocations: 0 / 0.5132 GB, free: 6.348 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001771/0.4192, allocations: 1.126 MB / 0.5143 GB, free: 5.191 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00224/0.4215, allocations: 498.8 kB / 0.5148 GB, free: 4.715 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02949/0.4509, allocations: 18.8 MB / 0.5331 GB, free: 1.156 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001904/0.4528, allocations: 2.006 MB / 0.5351 GB, free: 15.11 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001489/0.4543, allocations: 0.4921 MB / 0.5356 GB, free: 14.62 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001411/0.4557, allocations: 1.015 MB / 0.5366 GB, free: 13.6 MB / 462.1 MB Notification: Performance of SimCode: time 1.322e-06/0.4557, allocations: 0 / 0.5366 GB, free: 13.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2877/0.7435, allocations: 47.6 MB / 0.5831 GB, free: 99.91 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.43/15.18, allocations: 10.73 kB / 0.5831 GB, free: 99.91 MB / 462.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 23.80643467401387]