Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002042/0.002042, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002046/0.002046, allocations: 213.6 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.538/1.538, allocations: 230.5 MB / 257.4 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 55.91 kB / 377.8 MB, free: 2.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2358, allocations: 53.41 MB / 431.2 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01809/0.2539, allocations: 13.79 MB / 445 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01199/0.2659, allocations: 5.073 MB / 450 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002765/0.2687, allocations: 123.2 kB / 450.1 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003251/0.2719, allocations: 1.068 MB / 451.2 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004505/0.2764, allocations: 1.278 MB / 452.5 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002317/0.2788, allocations: 0.8995 MB / 453.4 MB, free: 132 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004964/0.2837, allocations: 3.65 MB / 457 MB, free: 12.47 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002665/0.2864, allocations: 1.835 MB / 458.9 MB, free: 10.56 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002514/0.2889, allocations: 1.795 MB / 460.7 MB, free: 8.762 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00296/0.2919, allocations: 2.004 MB / 462.7 MB, free: 6.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006884/0.2925, allocations: 480 kB / 463.1 MB, free: 6.281 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001386/0.2939, allocations: 0.6795 MB / 463.8 MB, free: 5.602 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001073/0.295, allocations: 1.161 MB / 465 MB, free: 4.438 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001808/0.2968, allocations: 1.618 MB / 466.6 MB, free: 2.812 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006925/0.3037, allocations: 6.337 MB / 472.9 MB, free: 12.45 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.428e-06/0.3038, allocations: 11.98 kB / 473 MB, free: 12.44 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3038, allocations: 0 / 473 MB, free: 12.44 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001394/0.3039, allocations: 0 / 473 MB, free: 12.44 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.0104/0.3143, allocations: 4.283 MB / 477.2 MB, free: 8.098 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.3143, allocations: 15.98 kB / 477.3 MB, free: 8.082 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006034/0.3149, allocations: 443.3 kB / 477.7 MB, free: 7.637 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002769/0.3177, allocations: 0.631 MB / 478.3 MB, free: 7.004 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004473/0.3222, allocations: 2.21 MB / 480.5 MB, free: 4.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000211/0.3224, allocations: 242.7 kB / 480.8 MB, free: 4.512 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005286/0.3229, allocations: 315.9 kB / 481.1 MB, free: 4.203 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00721/0.3301, allocations: 4.126 MB / 485.2 MB, free: 16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-05/0.3302, allocations: 7.938 kB / 485.2 MB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002867/0.3305, allocations: 132 kB / 485.3 MB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001652/0.3307, allocations: 146.2 kB / 485.5 MB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006169/0.3368, allocations: 3.382 MB / 488.9 MB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02098/0.3578, allocations: 11.8 MB / 0.4889 GB, free: 116 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003554/0.3614, allocations: 1.745 MB / 0.4906 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001603/0.363, allocations: 0.9337 MB / 0.4915 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004569/0.3675, allocations: 2.174 MB / 0.4937 GB, free: 11.28 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.815e-05/0.3676, allocations: 51.55 kB / 0.4937 GB, free: 11.22 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 3.176e-06/0.3676, allocations: 0 / 0.4937 GB, free: 11.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01206/0.3796, allocations: 5.822 MB / 0.4994 GB, free: 5.363 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.585e-05/0.3797, allocations: 68.66 kB / 0.4995 GB, free: 5.285 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002885/0.3826, allocations: 1.94 MB / 0.5014 GB, free: 3.301 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001004/0.3827, allocations: 45.7 kB / 0.5014 GB, free: 3.25 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001209/0.3839, allocations: 1.56 MB / 0.5029 GB, free: 1.676 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004547/0.3844, allocations: 0.5036 MB / 0.5034 GB, free: 1.168 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005227/0.3849, allocations: 335.4 kB / 0.5037 GB, free: 0.832 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.385, allocations: 305.1 kB / 0.504 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001277/0.3863, allocations: 0.773 MB / 0.5048 GB, free: 15.76 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001785/0.3881, allocations: 1.404 MB / 0.5062 GB, free: 14.07 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003269/0.3913, allocations: 2.32 MB / 0.5084 GB, free: 11.49 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-05/0.3913, allocations: 8 kB / 0.5084 GB, free: 11.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004275/0.3956, allocations: 2.478 MB / 0.5108 GB, free: 8.984 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.3956, allocations: 12 kB / 0.5109 GB, free: 8.973 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.684e-05/0.3957, allocations: 20.75 kB / 0.5109 GB, free: 8.953 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003897/0.3961, allocations: 130.4 kB / 0.511 GB, free: 8.816 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001823/0.3979, allocations: 479.2 kB / 0.5115 GB, free: 8.348 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001168/0.399, allocations: 1.302 MB / 0.5127 GB, free: 6.93 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/0.4005, allocations: 115.8 kB / 0.5128 GB, free: 6.816 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001469/0.4006, allocations: 87.92 kB / 0.5129 GB, free: 6.73 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001685/0.4023, allocations: 0.9889 MB / 0.5139 GB, free: 5.73 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003632/0.4027, allocations: 214.7 kB / 0.5141 GB, free: 5.52 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003559/0.4062, allocations: 1.973 MB / 0.516 GB, free: 3.531 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.548e-05/0.4063, allocations: 16 kB / 0.516 GB, free: 3.516 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.4063, allocations: 0 / 0.516 GB, free: 3.516 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.354e-05/0.4063, allocations: 7.969 kB / 0.516 GB, free: 3.508 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00809/0.4144, allocations: 4.651 MB / 0.5206 GB, free: 14.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/0.4144, allocations: 4 kB / 0.5206 GB, free: 14.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001389/0.4158, allocations: 311.5 kB / 0.5209 GB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003058/0.4161, allocations: 98.52 kB / 0.521 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.434e-05/0.4162, allocations: 32.19 kB / 0.521 GB, free: 14.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001037/0.4172, allocations: 1.271 MB / 0.5223 GB, free: 12.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.4172, allocations: 4 kB / 0.5223 GB, free: 12.91 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00483/0.422, allocations: 3.095 MB / 0.5253 GB, free: 9.758 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001137/0.4232, allocations: 398.5 kB / 0.5257 GB, free: 9.367 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002679/0.4234, allocations: 27.98 kB / 0.5257 GB, free: 9.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009752/0.4244, allocations: 79.91 kB / 0.5258 GB, free: 9.262 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001748/0.4246, allocations: 93.08 kB / 0.5259 GB, free: 9.172 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.84e-05/0.4247, allocations: 39.98 kB / 0.5259 GB, free: 9.133 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002182/0.4268, allocations: 1.294 MB / 0.5272 GB, free: 7.816 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4268, allocations: 0 / 0.5272 GB, free: 7.816 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001797/0.4286, allocations: 0.5312 MB / 0.5277 GB, free: 7.285 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.00536/0.434, allocations: 3.734 MB / 0.5313 GB, free: 3.496 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00356/0.4376, allocations: 1.964 MB / 0.5332 GB, free: 1.516 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/0.4376, allocations: 0 / 0.5332 GB, free: 1.516 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001574/0.4391, allocations: 0.9604 MB / 0.5342 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002697/0.4418, allocations: 0.5204 MB / 0.5347 GB, free: 28 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2226/0.6645, allocations: 20.1 MB / 0.5543 GB, free: 91.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001575/0.6661, allocations: 1.717 MB / 0.556 GB, free: 90.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001384/0.6674, allocations: 0.5131 MB / 0.5565 GB, free: 89.69 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001176/0.6686, allocations: 1.183 MB / 0.5576 GB, free: 88.51 MB / 446.1 MB Notification: Performance of SimCode: time 1.333e-06/0.6686, allocations: 4 kB / 0.5576 GB, free: 88.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08411/0.7527, allocations: 53.13 MB / 0.6095 GB, free: 35.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.67/14.42, allocations: 15.91 kB / 0.6095 GB, free: 35.82 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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: 20.81454218318686]