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.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.001768/0.001768, allocations: 120 kB / 18.45 MB, free: 4.605 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.001959/0.001959, allocations: 190.9 kB / 21.39 MB, free: 1.672 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.412/1.412, allocations: 207.6 MB / 231.8 MB, free: 4.227 MB / 174.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.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.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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001767/0.001767, allocations: 55.92 kB / 342.3 MB, free: 10.04 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09253/0.0943, allocations: 49.13 MB / 391.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01416/0.1085, allocations: 10.94 MB / 402.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008103/0.1166, allocations: 3.681 MB / 406 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00193/0.1185, allocations: 59.75 kB / 406.1 MB, free: 10 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002983/0.1215, allocations: 0.8774 MB / 406.9 MB, free: 9.121 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004283/0.1258, allocations: 0.9009 MB / 407.8 MB, free: 8.215 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001656/0.1274, allocations: 467.2 kB / 408.3 MB, free: 7.758 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004812/0.1322, allocations: 2.954 MB / 411.3 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003622/0.1358, allocations: 1.942 MB / 413.2 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00241/0.1383, allocations: 1.378 MB / 414.6 MB, free: 1.402 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003163/0.1414, allocations: 1.79 MB / 416.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001113/0.1425, allocations: 376 kB / 416.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001682/0.1442, allocations: 475.8 kB / 417.2 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001659/0.1459, allocations: 1.079 MB / 418.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002782/0.1487, allocations: 1.672 MB / 420 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00626/0.1549, allocations: 4.9 MB / 424.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1549, allocations: 4 kB / 424.9 MB, free: 7.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1549, allocations: 0 / 424.9 MB, free: 7.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.91e-05/0.155, allocations: 4 kB / 424.9 MB, free: 7.086 MB / 350.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.007791/0.1628, allocations: 3.461 MB / 428.3 MB, free: 3.555 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.1629, allocations: 19.83 kB / 428.3 MB, free: 3.535 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005578/0.1634, allocations: 367 kB / 428.7 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008651/0.1643, allocations: 358.8 kB / 429 MB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003702/0.168, allocations: 1.719 MB / 430.8 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001897/0.1682, allocations: 197.1 kB / 431 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005126/0.1687, allocations: 244 kB / 431.2 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007305/0.176, allocations: 3.275 MB / 434.5 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001038/0.1761, allocations: 15.94 kB / 434.5 MB, free: 13.24 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003923/0.1765, allocations: 99.98 kB / 434.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001651/0.1767, allocations: 124.9 kB / 434.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006377/0.183, allocations: 2.748 MB / 437.5 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02201/0.205, allocations: 10.43 MB / 447.9 MB, free: 15.47 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002134/0.2072, allocations: 1.285 MB / 449.2 MB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001261/0.2084, allocations: 0.6954 MB / 449.9 MB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000321/0.2088, allocations: 207.1 kB / 450.1 MB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.052e-05/0.2088, allocations: 43.56 kB / 450.1 MB, free: 13.12 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 5.039e-06/0.2088, allocations: 4 kB / 450.1 MB, free: 13.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01668/0.2255, allocations: 7.07 MB / 457.2 MB, free: 5.945 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/0.2256, allocations: 68.34 kB / 457.2 MB, free: 5.867 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003631/0.2292, allocations: 1.793 MB / 459 MB, free: 4.074 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001897/0.2294, allocations: 41.7 kB / 459.1 MB, free: 4.027 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001167/0.2305, allocations: 1.318 MB / 460.4 MB, free: 2.695 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005248/0.2311, allocations: 440.3 kB / 460.8 MB, free: 2.262 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005821/0.2317, allocations: 295.4 kB / 461.1 MB, free: 1.965 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.2318, allocations: 313.1 kB / 461.4 MB, free: 1.656 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001416/0.2332, allocations: 0.773 MB / 462.2 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1751/0.4083, allocations: 1.289 MB / 463.5 MB, free: 61.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003377/0.4117, allocations: 2.21 MB / 465.7 MB, free: 60.87 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.55e-05/0.4117, allocations: 6.375 kB / 465.7 MB, free: 60.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003877/0.4156, allocations: 2.482 MB / 468.2 MB, free: 60.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.28e-05/0.4156, allocations: 23.75 kB / 468.2 MB, free: 60.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.812e-05/0.4157, allocations: 16.44 kB / 468.2 MB, free: 60.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005959/0.4163, allocations: 237.6 kB / 468.5 MB, free: 60.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001403/0.4177, allocations: 413.4 kB / 468.9 MB, free: 60.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002115/0.4198, allocations: 3.243 MB / 472.1 MB, free: 57.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/0.4212, allocations: 127.9 kB / 472.2 MB, free: 57.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001259/0.4214, allocations: 74.78 kB / 472.3 MB, free: 57.12 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.001395/0.4227, allocations: 0.8267 MB / 473.1 MB, free: 56.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000356/0.4231, allocations: 192.7 kB / 473.3 MB, free: 56.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003168/0.4263, allocations: 2.033 MB / 475.3 MB, free: 55.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.4263, allocations: 11.53 kB / 475.4 MB, free: 55.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.4263, allocations: 2.281 kB / 475.4 MB, free: 55.86 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.6e-05/0.4263, allocations: 10.31 kB / 475.4 MB, free: 55.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00731/0.4336, allocations: 4.736 MB / 480.1 MB, free: 53.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.4336, allocations: 3.969 kB / 480.1 MB, free: 53.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009689/0.4346, allocations: 262.1 kB / 480.4 MB, free: 53.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004607/0.4351, allocations: 206.1 kB / 480.6 MB, free: 53.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.065e-05/0.4351, allocations: 23.72 kB / 480.6 MB, free: 53.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00178/0.4369, allocations: 3.214 MB / 483.8 MB, free: 50.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.4369, allocations: 10.75 kB / 483.8 MB, free: 50.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003665/0.4406, allocations: 3.129 MB / 486.9 MB, free: 49.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009053/0.4415, allocations: 436.6 kB / 487.4 MB, free: 49.33 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002273/0.4417, allocations: 26.62 kB / 487.4 MB, free: 49.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008794/0.4426, allocations: 98.45 kB / 487.5 MB, free: 49.29 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/0.4427, allocations: 76.83 kB / 487.6 MB, free: 49.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.457e-05/0.4428, allocations: 33.31 kB / 487.6 MB, free: 49.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001459/0.4443, allocations: 1.223 MB / 488.8 MB, free: 48.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4443, allocations: 0 / 488.8 MB, free: 48.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001556/0.4458, allocations: 488.1 kB / 489.3 MB, free: 48.71 MB / 382.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.003847/0.4497, allocations: 3.774 MB / 493.1 MB, free: 45.65 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002994/0.4527, allocations: 2.258 MB / 495.3 MB, free: 43.33 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.4527, allocations: 4.656 kB / 495.3 MB, free: 43.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001425/0.4541, allocations: 1.269 MB / 496.6 MB, free: 41.99 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002483/0.4566, allocations: 0.4909 MB / 497.1 MB, free: 41.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02645/0.483, allocations: 18.76 MB / 0.5038 GB, free: 22.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001503/0.4845, allocations: 2.006 MB / 0.5057 GB, free: 20.01 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001232/0.4858, allocations: 0.496 MB / 0.5062 GB, free: 19.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001088/0.4869, allocations: 1.015 MB / 0.5072 GB, free: 18.49 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4869, allocations: 0 / 0.5072 GB, free: 18.49 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09624/0.5831, allocations: 46.32 MB / 0.5524 GB, free: 4.043 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.14/13.73, allocations: 15.94 kB / 0.5525 GB, free: 4.027 MB / 414.1 MB " [Timeout remaining time 646] (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_2/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_2/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.91361401323229]