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.0008035/0.0008035, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.004266/0.004266, allocations: 165.6 kB / 24.7 MB, free: 8.887 MB / 18.57 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 0.8922/0.8922, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 1.052e-06/1.052e-06, allocations: 0 / 298.5 MB, free: 3.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.629e-06/1.068e-05, allocations: 2.281 kB / 298.5 MB, free: 3.5 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.1298/0.1298, allocations: 9.578 MB / 308 MB, free: 10.67 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006008/0.1358, allocations: 3.488 MB / 311.5 MB, free: 8.289 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002279/0.1381, allocations: 80.69 kB / 311.6 MB, free: 8.25 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001991/0.1401, allocations: 0.8135 MB / 312.4 MB, free: 7.832 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002592/0.1427, allocations: 0.9459 MB / 313.4 MB, free: 7.219 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009536/0.1436, allocations: 467.5 kB / 313.8 MB, free: 6.934 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002952/0.1466, allocations: 3.05 MB / 316.9 MB, free: 5.348 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001723/0.1483, allocations: 1.485 MB / 318.4 MB, free: 4.582 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002723/0.151, allocations: 2.049 MB / 320.4 MB, free: 3.629 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002019/0.1531, allocations: 1.518 MB / 321.9 MB, free: 3.094 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006615/0.1537, allocations: 373.3 kB / 322.3 MB, free: 3.094 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009241/0.1546, allocations: 477.2 kB / 322.8 MB, free: 3.047 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006864/0.1553, allocations: 1.115 MB / 323.9 MB, free: 2.211 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001424/0.1567, allocations: 1.134 MB / 325 MB, free: 1.539 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004251/0.161, allocations: 4.944 MB / 329.9 MB, free: 13.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.161, allocations: 0 / 329.9 MB, free: 13.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.161, allocations: 0 / 329.9 MB, free: 13.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001243/0.1611, allocations: 0 / 329.9 MB, free: 13.89 MB / 298.7 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.006207/0.1673, allocations: 3.36 MB / 333.3 MB, free: 11.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.1674, allocations: 13.58 kB / 333.3 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004258/0.1678, allocations: 368.6 kB / 333.7 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006855/0.1685, allocations: 351.8 kB / 334 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002322/0.1708, allocations: 1.638 MB / 335.7 MB, free: 9.426 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.1709, allocations: 189.4 kB / 335.8 MB, free: 9.238 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002667/0.1712, allocations: 245.5 kB / 336.1 MB, free: 9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004121/0.1753, allocations: 3.359 MB / 339.4 MB, free: 5.543 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.345e-05/0.1754, allocations: 11.95 kB / 339.5 MB, free: 5.531 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000169/0.1755, allocations: 96 kB / 339.6 MB, free: 5.438 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.854e-05/0.1756, allocations: 130 kB / 339.7 MB, free: 5.309 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003442/0.1791, allocations: 2.74 MB / 342.4 MB, free: 2.551 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01141/0.1905, allocations: 9.463 MB / 351.9 MB, free: 8.754 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001358/0.1918, allocations: 1.067 MB / 352.9 MB, free: 7.676 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007787/0.1926, allocations: 0.7003 MB / 353.6 MB, free: 6.973 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001676/0.1928, allocations: 52.95 kB / 353.7 MB, free: 6.922 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.1928, allocations: 43.56 kB / 353.7 MB, free: 6.867 MB / 314.7 MB Notification: Performance of pre-optimization done (n=97): time 3.056e-06/0.1928, allocations: 1.594 kB / 353.7 MB, free: 6.867 MB / 314.7 MB Notification: Performance of matching and sorting (n=122): time 0.01002/0.2028, allocations: 6.761 MB / 360.5 MB, free: 72 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.118e-05/0.2029, allocations: 64.45 kB / 360.6 MB, free: 15.99 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002012/0.2049, allocations: 1.824 MB / 362.4 MB, free: 14.17 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.909e-05/0.205, allocations: 45.7 kB / 362.4 MB, free: 14.12 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008802/0.2059, allocations: 1.302 MB / 363.7 MB, free: 12.8 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002563/0.2061, allocations: 444.2 kB / 364.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003066/0.2064, allocations: 295.4 kB / 364.5 MB, free: 12.07 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.845e-05/0.2065, allocations: 305.1 kB / 364.8 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008231/0.2073, allocations: 0.7769 MB / 365.5 MB, free: 11 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001012/0.2083, allocations: 1.3 MB / 366.8 MB, free: 9.469 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001963/0.2103, allocations: 2.219 MB / 369.1 MB, free: 7.02 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.115e-05/0.2103, allocations: 4 kB / 369.1 MB, free: 7.016 MB / 330.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003092/0.2134, allocations: 2.471 MB / 371.5 MB, free: 4.523 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/0.2134, allocations: 15.98 kB / 371.5 MB, free: 4.508 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.524e-05/0.2135, allocations: 16 kB / 371.6 MB, free: 4.492 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005723/0.214, allocations: 239.2 kB / 371.8 MB, free: 4.246 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001071/0.2151, allocations: 423.6 kB / 372.2 MB, free: 3.832 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00189/0.217, allocations: 3.019 MB / 375.2 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001047/0.218, allocations: 131.8 kB / 375.4 MB, free: 460 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.823e-05/0.2181, allocations: 71.94 kB / 375.4 MB, free: 388 kB / 330.7 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.001198/0.2193, allocations: 0.8213 MB / 376.2 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003618/0.2197, allocations: 194.7 kB / 376.4 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003529/0.2232, allocations: 2.031 MB / 378.5 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-05/0.2232, allocations: 12 kB / 378.5 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.2232, allocations: 4 kB / 378.5 MB, free: 13.28 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/0.2233, allocations: 11.97 kB / 378.5 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007005/0.2303, allocations: 4.432 MB / 382.9 MB, free: 8.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.2303, allocations: 0 / 382.9 MB, free: 8.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006167/0.2309, allocations: 267.6 kB / 383.2 MB, free: 8.488 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003406/0.2312, allocations: 203.5 kB / 383.4 MB, free: 8.277 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.029e-05/0.2313, allocations: 28 kB / 383.4 MB, free: 8.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001825/0.2331, allocations: 2.992 MB / 386.4 MB, free: 5.023 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.2331, allocations: 7.969 kB / 386.4 MB, free: 5.016 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003519/0.2366, allocations: 3.125 MB / 389.5 MB, free: 1.836 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008138/0.2375, allocations: 358.7 kB / 389.9 MB, free: 1.484 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000172/0.2376, allocations: 24 kB / 389.9 MB, free: 1.461 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005595/0.2382, allocations: 95.86 kB / 390 MB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/0.2383, allocations: 92.72 kB / 390.1 MB, free: 1.277 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.91e-05/0.2384, allocations: 32 kB / 390.1 MB, free: 1.246 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001446/0.2398, allocations: 1.22 MB / 391.4 MB, free: 36 kB / 346.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2398, allocations: 0 / 391.4 MB, free: 36 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.001368/0.2412, allocations: 488 kB / 391.8 MB, free: 15.55 MB / 362.7 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.003783/0.245, allocations: 3.772 MB / 395.6 MB, free: 11.72 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002514/0.2475, allocations: 2.122 MB / 397.7 MB, free: 9.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.2475, allocations: 0 / 397.7 MB, free: 9.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00113/0.2486, allocations: 1.122 MB / 398.8 MB, free: 8.414 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001688/0.2503, allocations: 0.4895 MB / 399.3 MB, free: 7.93 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02411/0.2744, allocations: 18.79 MB / 418.1 MB, free: 4.379 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001231/0.2757, allocations: 1.454 MB / 419.6 MB, free: 2.887 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001105/0.2768, allocations: 0.4999 MB / 420.1 MB, free: 2.383 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001004/0.2778, allocations: 1.012 MB / 421.1 MB, free: 1.367 MB / 378.7 MB Notification: Performance of SimCode: time 1.082e-06/0.2778, allocations: 0 / 421.1 MB, free: 1.367 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08773/0.3655, allocations: 49.09 MB / 470.2 MB, free: 148 kB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.223/8.589, allocations: 7.875 kB / 470.2 MB, free: 140 kB / 426.7 MB " [Timeout remaining time 651] (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/jenkins/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/jenkins/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: 12.214580859057605]