Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0048/0.0048, allocations: 109.7 kB / 21.97 MB, free: 5.195 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 211.5 kB / 25.27 MB, free: 3.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.355/1.355, allocations: 207.6 MB / 236 MB, free: 10.88 MB / 190.1 MB " [Timeout remaining time 178] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 51.92 kB / 348 MB, free: 10.14 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2501, allocations: 49.15 MB / 397.1 MB, free: 9.012 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.0109/0.261, allocations: 10.99 MB / 408.1 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008178/0.2691, allocations: 3.703 MB / 411.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002686/0.2718, allocations: 72.75 kB / 411.9 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003019/0.2748, allocations: 0.8776 MB / 412.8 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004229/0.2791, allocations: 0.9169 MB / 413.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001746/0.2808, allocations: 482.4 kB / 414.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004106/0.2849, allocations: 2.957 MB / 417.1 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002139/0.2871, allocations: 1.526 MB / 418.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001924/0.289, allocations: 1.4 MB / 420.1 MB, free: 9.598 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002476/0.2915, allocations: 1.802 MB / 421.9 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005253/0.292, allocations: 373.1 kB / 422.2 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009032/0.2929, allocations: 478.6 kB / 422.7 MB, free: 8.336 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001116/0.294, allocations: 1.098 MB / 423.8 MB, free: 7.516 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00183/0.2958, allocations: 1.673 MB / 425.5 MB, free: 6.301 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005259/0.3011, allocations: 4.887 MB / 430.4 MB, free: 2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.468e-06/0.3011, allocations: 7.984 kB / 430.4 MB, free: 1.992 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3011, allocations: 3.938 kB / 430.4 MB, free: 1.988 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.374e-05/0.3012, allocations: 0 / 430.4 MB, free: 1.988 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.006523/0.3077, allocations: 3.39 MB / 433.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.3078, allocations: 11.98 kB / 433.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.288e-05/0.3078, allocations: 69.22 kB / 433.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000472/0.3083, allocations: 363 kB / 434.2 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000808/0.3091, allocations: 358.8 kB / 434.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003004/0.3121, allocations: 1.635 MB / 436.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001652/0.3123, allocations: 189 kB / 436.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003676/0.3126, allocations: 248 kB / 436.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005145/0.3178, allocations: 3.283 MB / 439.9 MB, free: 8.281 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.623e-05/0.3179, allocations: 7.953 kB / 439.9 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002285/0.3181, allocations: 104 kB / 440 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001242/0.3182, allocations: 120.9 kB / 440.1 MB, free: 8.051 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00447/0.3227, allocations: 2.748 MB / 442.9 MB, free: 5.289 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01474/0.3374, allocations: 10.25 MB / 453.1 MB, free: 10.67 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001681/0.3391, allocations: 1.066 MB / 454.2 MB, free: 9.594 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00116/0.3403, allocations: 0.6965 MB / 454.9 MB, free: 8.895 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002095/0.3405, allocations: 52.94 kB / 454.9 MB, free: 8.844 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.3405, allocations: 43.56 kB / 455 MB, free: 8.793 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 2.455e-06/0.3405, allocations: 0 / 455 MB, free: 8.793 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01465/0.3552, allocations: 6.773 MB / 461.7 MB, free: 1.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.562e-05/0.3552, allocations: 68.41 kB / 461.8 MB, free: 1.902 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002466/0.3577, allocations: 1.801 MB / 463.6 MB, free: 104 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.375e-05/0.3578, allocations: 45.7 kB / 463.7 MB, free: 52 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009767/0.3587, allocations: 1.314 MB / 465 MB, free: 14.72 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003669/0.3591, allocations: 436.3 kB / 465.4 MB, free: 14.29 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004611/0.3596, allocations: 303.4 kB / 465.7 MB, free: 13.99 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.3597, allocations: 305.1 kB / 466 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001176/0.3609, allocations: 0.773 MB / 466.8 MB, free: 12.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001559/0.3624, allocations: 1.297 MB / 468.1 MB, free: 11.39 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002905/0.3653, allocations: 2.219 MB / 470.3 MB, free: 8.938 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/0.3653, allocations: 4 kB / 470.3 MB, free: 8.934 MB / 382.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003994/0.3693, allocations: 2.475 MB / 472.8 MB, free: 6.438 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.3694, allocations: 12 kB / 472.8 MB, free: 6.426 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.817e-05/0.3694, allocations: 20 kB / 472.8 MB, free: 6.406 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006063/0.37, allocations: 243.5 kB / 473 MB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001408/0.3714, allocations: 419.3 kB / 473.4 MB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002808/0.3742, allocations: 3.027 MB / 476.5 MB, free: 2.484 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/0.3755, allocations: 139.8 kB / 476.6 MB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/0.3756, allocations: 71.98 kB / 476.7 MB, free: 2.277 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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.001388/0.377, allocations: 0.8173 MB / 477.5 MB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003813/0.3774, allocations: 194.7 kB / 477.7 MB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003412/0.3808, allocations: 2.035 MB / 479.7 MB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.3808, allocations: 12 kB / 479.7 MB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.3808, allocations: 3.938 kB / 479.7 MB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/0.3809, allocations: 7.984 kB / 479.7 MB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007724/0.3886, allocations: 4.701 MB / 484.4 MB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.3886, allocations: 4 kB / 484.4 MB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001054/0.3896, allocations: 259.6 kB / 484.7 MB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005242/0.3902, allocations: 207.5 kB / 484.9 MB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.822e-05/0.3902, allocations: 31.92 kB / 484.9 MB, free: 9.879 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002671/0.3929, allocations: 3.008 MB / 487.9 MB, free: 6.641 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/0.3929, allocations: 8.031 kB / 487.9 MB, free: 6.633 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004651/0.3976, allocations: 3.136 MB / 491.1 MB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009246/0.3985, allocations: 358.5 kB / 491.4 MB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002401/0.3987, allocations: 24 kB / 491.4 MB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008998/0.3996, allocations: 91.88 kB / 491.5 MB, free: 2.973 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/0.3998, allocations: 88.78 kB / 491.6 MB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.81e-05/0.3999, allocations: 35.98 kB / 491.7 MB, free: 2.852 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001851/0.4017, allocations: 1.22 MB / 492.9 MB, free: 1.641 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4017, allocations: 0 / 492.9 MB, free: 1.641 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001549/0.4033, allocations: 487.9 kB / 493.4 MB, free: 1.164 MB / 398.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 (120): * Single equations (assignments): 116 * 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.00507/0.4083, allocations: 3.769 MB / 497.1 MB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003529/0.4119, allocations: 2.117 MB / 499.2 MB, free: 11.18 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.4119, allocations: 0 / 499.2 MB, free: 11.18 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001756/0.4136, allocations: 1.123 MB / 0.4886 GB, free: 10.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002232/0.4159, allocations: 497.4 kB / 0.4891 GB, free: 9.535 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02704/0.4429, allocations: 18.79 MB / 0.5075 GB, free: 5.984 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001837/0.4447, allocations: 2.006 MB / 0.5094 GB, free: 3.941 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001302/0.446, allocations: 0.4999 MB / 0.5099 GB, free: 3.438 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001346/0.4474, allocations: 1.015 MB / 0.5109 GB, free: 2.422 MB / 430.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4474, allocations: 0 / 0.5109 GB, free: 2.422 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08989/0.5373, allocations: 47.58 MB / 0.5574 GB, free: 2.715 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.86/14.4, allocations: 11.91 kB / 0.5574 GB, free: 2.703 MB / 478.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_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_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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: 22.80692210700363]