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.001245/0.001245, allocations: 107.6 kB / 21.18 MB, free: 0.6094 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.001404/0.001404, allocations: 215 kB / 24.48 MB, free: 3.934 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.344/1.344, allocations: 207.7 MB / 235.3 MB, free: 9.812 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="me",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="me",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.001731/0.001731, allocations: 54.58 kB / 347.2 MB, free: 9.887 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2364/0.2382, allocations: 49.16 MB / 396.4 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01019/0.2484, allocations: 9.584 MB / 405.9 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006492/0.2549, allocations: 3.484 MB / 409.4 MB, free: 124 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002049/0.2569, allocations: 75.72 kB / 409.5 MB, free: 88 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002326/0.2592, allocations: 0.8038 MB / 410.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00292/0.2622, allocations: 0.9248 MB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001282/0.2634, allocations: 467.2 kB / 411.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00372/0.2672, allocations: 2.953 MB / 414.6 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002132/0.2693, allocations: 1.477 MB / 416.1 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002169/0.2715, allocations: 1.412 MB / 417.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002817/0.2743, allocations: 1.675 MB / 419.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006357/0.2749, allocations: 374.5 kB / 419.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0011/0.276, allocations: 478.3 kB / 420 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001152/0.2772, allocations: 1.089 MB / 421.1 MB, free: 9.309 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001602/0.2788, allocations: 1.341 MB / 422.5 MB, free: 8.426 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005448/0.2842, allocations: 4.926 MB / 427.4 MB, free: 3.969 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.2842, allocations: 0 / 427.4 MB, free: 3.969 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.958e-06/0.2842, allocations: 8 kB / 427.4 MB, free: 3.961 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.907e-05/0.2843, allocations: 0 / 427.4 MB, free: 3.961 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.007416/0.2917, allocations: 3.386 MB / 430.8 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.2918, allocations: 11.98 kB / 430.8 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005169/0.2923, allocations: 363 kB / 431.2 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008352/0.2931, allocations: 362.8 kB / 431.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003403/0.2965, allocations: 1.627 MB / 433.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001853/0.2967, allocations: 201.1 kB / 433.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004126/0.2971, allocations: 248 kB / 433.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005772/0.3029, allocations: 3.359 MB / 436.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.896e-05/0.303, allocations: 7.984 kB / 436.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002257/0.3032, allocations: 100 kB / 437 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001466/0.3034, allocations: 132.8 kB / 437.2 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004775/0.3081, allocations: 2.733 MB / 439.9 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01582/0.3239, allocations: 9.46 MB / 449.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001851/0.3258, allocations: 1.059 MB / 450.4 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001234/0.327, allocations: 0.6915 MB / 451.1 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002156/0.3272, allocations: 48.97 kB / 451.2 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.25e-05/0.3273, allocations: 43.56 kB / 451.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 3.236e-06/0.3273, allocations: 4 kB / 451.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01575/0.343, allocations: 6.774 MB / 458 MB, free: 4.738 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.325e-05/0.3431, allocations: 64.41 kB / 458 MB, free: 4.664 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002747/0.3458, allocations: 1.82 MB / 459.9 MB, free: 2.844 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001018/0.3459, allocations: 49.7 kB / 459.9 MB, free: 2.789 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001072/0.347, allocations: 1.314 MB / 461.2 MB, free: 1.461 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004027/0.3474, allocations: 448.2 kB / 461.7 MB, free: 1.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004766/0.3479, allocations: 295.4 kB / 461.9 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.348, allocations: 305.1 kB / 462.2 MB, free: 432 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001263/0.3493, allocations: 0.7769 MB / 463 MB, free: 15.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001684/0.351, allocations: 1.297 MB / 464.3 MB, free: 14.12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003103/0.3541, allocations: 2.218 MB / 466.5 MB, free: 11.67 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.799e-06/0.3541, allocations: 4 kB / 466.5 MB, free: 11.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004223/0.3583, allocations: 2.475 MB / 469 MB, free: 9.168 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.71e-05/0.3583, allocations: 12.16 kB / 469 MB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.264e-05/0.3584, allocations: 23.98 kB / 469.1 MB, free: 9.133 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006368/0.359, allocations: 247.2 kB / 469.3 MB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/0.3604, allocations: 411.3 kB / 469.7 MB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002876/0.3633, allocations: 3.027 MB / 472.7 MB, free: 5.215 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001462/0.3648, allocations: 135.9 kB / 472.9 MB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000137/0.3649, allocations: 75.98 kB / 472.9 MB, free: 5.008 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.001519/0.3664, allocations: 0.8134 MB / 473.7 MB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004584/0.3669, allocations: 198.7 kB / 473.9 MB, free: 3.988 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003745/0.3706, allocations: 2.035 MB / 476 MB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/0.3706, allocations: 12 kB / 476 MB, free: 1.922 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.3706, allocations: 4 kB / 476 MB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.3707, allocations: 7.922 kB / 476 MB, free: 1.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008206/0.3789, allocations: 4.44 MB / 480.4 MB, free: 13.37 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.3789, allocations: 0 / 480.4 MB, free: 13.37 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001091/0.38, allocations: 263.6 kB / 480.7 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005628/0.3805, allocations: 199.3 kB / 480.9 MB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.742e-05/0.3806, allocations: 27.94 kB / 480.9 MB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002941/0.3835, allocations: 3 MB / 483.9 MB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3835, allocations: 4.031 kB / 483.9 MB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004991/0.3885, allocations: 3.132 MB / 487.1 MB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/0.3898, allocations: 362.5 kB / 487.4 MB, free: 6.102 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002525/0.39, allocations: 27.94 kB / 487.4 MB, free: 6.074 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009321/0.391, allocations: 95.81 kB / 487.5 MB, free: 5.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001788/0.3912, allocations: 88.97 kB / 487.6 MB, free: 5.895 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.909e-05/0.3912, allocations: 35.98 kB / 487.6 MB, free: 5.859 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001978/0.3932, allocations: 1.216 MB / 488.9 MB, free: 4.652 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3932, allocations: 0 / 488.9 MB, free: 4.652 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001511/0.3947, allocations: 487.9 kB / 489.3 MB, free: 4.176 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.005394/0.4001, allocations: 3.772 MB / 493.1 MB, free: 340 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003704/0.4038, allocations: 2.114 MB / 495.2 MB, free: 14.19 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/0.4038, allocations: 0 / 495.2 MB, free: 14.19 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001873/0.4057, allocations: 1.118 MB / 496.3 MB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002252/0.408, allocations: 0.4942 MB / 496.8 MB, free: 12.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02946/0.4374, allocations: 18.78 MB / 0.5035 GB, free: 9.008 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001728/0.4391, allocations: 1.454 MB / 0.505 GB, free: 7.516 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00149/0.4406, allocations: 0.4921 MB / 0.5054 GB, free: 7.02 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001454/0.4421, allocations: 1.007 MB / 0.5064 GB, free: 6.012 MB / 430.1 MB Notification: Performance of SimCode: time 1.412e-06/0.4421, allocations: 0 / 0.5064 GB, free: 6.012 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1055/0.5475, allocations: 49.13 MB / 0.5544 GB, free: 4.727 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.65/13.2, allocations: 11.92 kB / 0.5544 GB, free: 4.715 MB / 478.1 MB " [Timeout remaining time 647] (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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 18.25244993204251]