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.001282/0.001282, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.001299/0.001299, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.377/1.377, allocations: 225.6 MB / 249.1 MB, free: 3.605 MB / 190.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="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 55.91 kB / 365.7 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09813/0.09963, allocations: 52.14 MB / 417.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01364/0.1133, allocations: 10.96 MB / 428.8 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007166/0.1204, allocations: 3.637 MB / 432.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001252/0.1217, allocations: 63.75 kB / 432.5 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002034/0.1237, allocations: 0.8736 MB / 433.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002514/0.1262, allocations: 0.897 MB / 434.2 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001028/0.1273, allocations: 463.3 kB / 434.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00349/0.1308, allocations: 2.945 MB / 437.6 MB, free: 8.652 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002604/0.1334, allocations: 1.974 MB / 439.6 MB, free: 6.617 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001899/0.1353, allocations: 1.382 MB / 441 MB, free: 5.23 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002445/0.1377, allocations: 1.798 MB / 442.8 MB, free: 3.426 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005694/0.1383, allocations: 372 kB / 443.1 MB, free: 3.062 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008785/0.1391, allocations: 479.8 kB / 443.6 MB, free: 2.594 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00112/0.1403, allocations: 1.087 MB / 444.7 MB, free: 1.504 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1818/0.3221, allocations: 1.673 MB / 446.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005787/0.3279, allocations: 4.891 MB / 451.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3279, allocations: 0 / 451.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3279, allocations: 0.9375 kB / 451.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001198/0.328, allocations: 0 / 451.3 MB, free: 13.34 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.007491/0.3355, allocations: 3.469 MB / 454.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.3355, allocations: 9.062 kB / 454.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000556/0.3361, allocations: 369.6 kB / 455.1 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008967/0.337, allocations: 358.9 kB / 455.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003931/0.3409, allocations: 1.83 MB / 457.3 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001597/0.3411, allocations: 192.9 kB / 457.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004482/0.3415, allocations: 253.4 kB / 457.7 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005956/0.3475, allocations: 3.285 MB / 461 MB, free: 10.94 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-05/0.3475, allocations: 5.188 kB / 461 MB, free: 10.94 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002513/0.3478, allocations: 99.84 kB / 461.1 MB, free: 10.94 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001187/0.3479, allocations: 126.3 kB / 461.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004689/0.3526, allocations: 2.751 MB / 464 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01556/0.3682, allocations: 10.41 MB / 474.4 MB, free: 4.227 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001649/0.3698, allocations: 1.299 MB / 475.7 MB, free: 3.406 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001073/0.3709, allocations: 0.7049 MB / 476.4 MB, free: 3.059 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002278/0.3711, allocations: 207.3 kB / 476.6 MB, free: 2.852 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.3711, allocations: 39.69 kB / 476.6 MB, free: 2.809 MB / 366.1 MB Notification: Performance of pre-optimization done (n=98): time 2.635e-06/0.3711, allocations: 0 / 476.6 MB, free: 2.809 MB / 366.1 MB Notification: Performance of matching and sorting (n=123): time 0.01326/0.3844, allocations: 6.952 MB / 483.6 MB, free: 15.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.146e-05/0.3845, allocations: 65.28 kB / 483.7 MB, free: 14.97 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002571/0.387, allocations: 1.795 MB / 485.5 MB, free: 14.03 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001053/0.3871, allocations: 48.86 kB / 485.5 MB, free: 13.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009823/0.3881, allocations: 1.306 MB / 486.8 MB, free: 12.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003745/0.3885, allocations: 445.5 kB / 487.2 MB, free: 12.46 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004391/0.3889, allocations: 299.3 kB / 487.5 MB, free: 12.29 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.3891, allocations: 305.1 kB / 487.8 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001084/0.3901, allocations: 0.7779 MB / 488.6 MB, free: 11.61 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001516/0.3917, allocations: 1.293 MB / 489.9 MB, free: 10.55 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002786/0.3944, allocations: 2.208 MB / 492.1 MB, free: 8.941 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.3945, allocations: 4 kB / 492.1 MB, free: 8.938 MB / 382.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004196/0.3987, allocations: 2.486 MB / 494.6 MB, free: 6.531 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.226e-05/0.3987, allocations: 12.75 kB / 494.6 MB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.27e-05/0.3987, allocations: 16 kB / 494.6 MB, free: 6.504 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00063/0.3993, allocations: 239.9 kB / 494.9 MB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001463/0.4008, allocations: 418.1 kB / 495.3 MB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003084/0.4039, allocations: 3.237 MB / 498.5 MB, free: 2.379 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001342/0.4052, allocations: 131.8 kB / 498.6 MB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/0.4054, allocations: 71.98 kB / 498.7 MB, free: 2.18 MB / 382.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.001464/0.4068, allocations: 0.8216 MB / 499.5 MB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003599/0.4072, allocations: 199.8 kB / 499.7 MB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003648/0.4108, allocations: 2.034 MB / 0.49 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/0.4108, allocations: 12 kB / 0.49 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.4108, allocations: 3.281 kB / 0.49 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.089e-05/0.4109, allocations: 3.984 kB / 0.49 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008642/0.4195, allocations: 4.744 MB / 0.4946 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.4195, allocations: 288 / 0.4946 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001094/0.4206, allocations: 268.8 kB / 0.4949 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000537/0.4211, allocations: 199.4 kB / 0.4951 GB, free: 9.867 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.4213, allocations: 28.86 kB / 0.4951 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003039/0.4243, allocations: 3.222 MB / 0.4983 GB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.4243, allocations: 6.906 kB / 0.4983 GB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005112/0.4294, allocations: 3.132 MB / 0.5013 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001183/0.4306, allocations: 439.7 kB / 0.5018 GB, free: 2.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002751/0.4309, allocations: 28.06 kB / 0.5018 GB, free: 2.703 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009511/0.4318, allocations: 95.81 kB / 0.5019 GB, free: 2.609 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001734/0.432, allocations: 80.36 kB / 0.5019 GB, free: 2.531 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.737e-05/0.4321, allocations: 35.98 kB / 0.502 GB, free: 2.496 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002012/0.4341, allocations: 1.22 MB / 0.5032 GB, free: 1.285 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4341, allocations: 4 kB / 0.5032 GB, free: 1.281 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00164/0.4357, allocations: 487.9 kB / 0.5036 GB, free: 0.8047 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 (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.005529/0.4412, allocations: 3.779 MB / 0.5073 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004084/0.4453, allocations: 2.27 MB / 0.5095 GB, free: 10.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.4453, allocations: 0 / 0.5095 GB, free: 10.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001989/0.4473, allocations: 1.272 MB / 0.5108 GB, free: 9.391 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002357/0.4497, allocations: 499 kB / 0.5113 GB, free: 8.922 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03025/0.4799, allocations: 18.77 MB / 0.5296 GB, free: 5.535 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002062/0.482, allocations: 2.014 MB / 0.5316 GB, free: 3.496 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001583/0.4836, allocations: 0.4959 MB / 0.532 GB, free: 3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001531/0.4851, allocations: 1.007 MB / 0.533 GB, free: 1.992 MB / 430.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4851, allocations: 4 kB / 0.533 GB, free: 1.988 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09906/0.5842, allocations: 46.35 MB / 0.5783 GB, free: 4.133 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.6/14.19, allocations: 10.66 kB / 0.5783 GB, free: 4.125 MB / 478.1 MB " [Timeout remaining time 646] (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_2/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_2/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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 19.898480671923608]