Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007538/0.0007539, allocations: 94.25 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009402/0.0009402, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.168/1.168, allocations: 227.7 MB / 246.8 MB, free: 9.582 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001858/0.0001858, allocations: 8 kB / 307.8 MB, free: 0.4922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07261/0.07281, allocations: 51.53 MB / 359.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.007343/0.08017, allocations: 8.56 MB / 367.9 MB, free: 4.367 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00436/0.08455, allocations: 3.124 MB / 371 MB, free: 1.227 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008105/0.08537, allocations: 39.81 kB / 371.1 MB, free: 1.188 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001308/0.08669, allocations: 0.5984 MB / 371.7 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1242/0.2109, allocations: 0.6338 MB / 372.3 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008258/0.2118, allocations: 277 kB / 372.6 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002279/0.214, allocations: 2.457 MB / 375 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001295/0.2154, allocations: 1.177 MB / 376.2 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008733/0.2162, allocations: 0.7346 MB / 377 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009596/0.2172, allocations: 0.9996 MB / 378 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001611/0.2174, allocations: 103.7 kB / 378.1 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004277/0.2178, allocations: 205.2 kB / 378.3 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004403/0.2183, allocations: 0.5385 MB / 378.8 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006905/0.219, allocations: 0.9536 MB / 379.8 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002224/0.2212, allocations: 2.951 MB / 382.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.075e-06/0.2212, allocations: 0 / 382.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2212, allocations: 0 / 382.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.435e-05/0.2212, allocations: 1.594 kB / 382.7 MB, free: 8.512 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 404 * Number of variables: 404 Notification: Performance of Generate backend data structure: time 0.00282/0.2241, allocations: 1.968 MB / 384.7 MB, free: 7.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.2241, allocations: 9.844 kB / 384.7 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002295/0.2243, allocations: 235.6 kB / 384.9 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000536/0.2249, allocations: 230.5 kB / 385.1 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001387/0.2263, allocations: 1.202 MB / 386.3 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.711e-05/0.2264, allocations: 118 kB / 386.5 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002229/0.2266, allocations: 163.5 kB / 386.6 MB, free: 6.852 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002663/0.2293, allocations: 2.032 MB / 388.6 MB, free: 5.746 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.105e-05/0.2293, allocations: 10.22 kB / 388.7 MB, free: 5.738 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001312/0.2295, allocations: 63.28 kB / 388.7 MB, free: 5.691 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-05/0.2295, allocations: 79.89 kB / 388.8 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002286/0.2318, allocations: 1.687 MB / 390.5 MB, free: 4.828 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006855/0.2387, allocations: 7.133 MB / 397.6 MB, free: 15.24 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007312/0.2394, allocations: 477.1 kB / 398.1 MB, free: 15.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003845/0.2398, allocations: 278 kB / 398.4 MB, free: 14.89 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001741/0.24, allocations: 123.2 kB / 398.5 MB, free: 14.78 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.24, allocations: 37.34 kB / 398.5 MB, free: 14.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=48): time 2.104e-06/0.24, allocations: 0 / 398.5 MB, free: 14.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.00574/0.2458, allocations: 3.153 MB / 401.7 MB, free: 12.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.962e-05/0.2458, allocations: 59.34 kB / 401.7 MB, free: 12.92 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001825/0.2477, allocations: 1.625 MB / 403.3 MB, free: 11.4 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.647e-05/0.2477, allocations: 41.7 kB / 403.4 MB, free: 11.35 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005981/0.2483, allocations: 1.029 MB / 404.4 MB, free: 10.32 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001558/0.2485, allocations: 245.4 kB / 404.7 MB, free: 10.08 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001448/0.2486, allocations: 129.6 kB / 404.8 MB, free: 9.949 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.22e-05/0.2487, allocations: 301.1 kB / 405.1 MB, free: 9.652 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007982/0.2495, allocations: 0.5387 MB / 405.6 MB, free: 9.113 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001251/0.2508, allocations: 1.469 MB / 407.1 MB, free: 7.188 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002134/0.2529, allocations: 2.156 MB / 409.2 MB, free: 4.586 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.204e-05/0.2529, allocations: 12 kB / 409.3 MB, free: 4.574 MB / 318.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003002/0.256, allocations: 2.18 MB / 411.4 MB, free: 2.375 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.256, allocations: 16 kB / 411.4 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.798e-05/0.256, allocations: 39.98 kB / 411.5 MB, free: 2.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004787/0.2565, allocations: 230.3 kB / 411.7 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.2575, allocations: 399.6 kB / 412.1 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001341/0.2589, allocations: 1.715 MB / 413.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/0.2599, allocations: 147.4 kB / 414 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/0.26, allocations: 92 kB / 414 MB, free: 15.6 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * 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 (204): * Single equations (assignments): 201 * 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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006585/0.2607, allocations: 0.5944 MB / 414.6 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001816/0.2609, allocations: 154.1 kB / 414.8 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001765/0.2627, allocations: 1.114 MB / 415.9 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.699e-06/0.2627, allocations: 19.92 kB / 415.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.2627, allocations: 3.938 kB / 415.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.2627, allocations: 0 / 415.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003773/0.2665, allocations: 2.789 MB / 418.7 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.2665, allocations: 4 kB / 418.7 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004625/0.267, allocations: 119.9 kB / 418.8 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000372/0.2673, allocations: 170.5 kB / 419 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.553e-05/0.2674, allocations: 15.94 kB / 419 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001208/0.2686, allocations: 1.659 MB / 420.7 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2686, allocations: 3.938 kB / 420.7 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002247/0.2709, allocations: 1.658 MB / 422.3 MB, free: 7.008 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003639/0.2712, allocations: 311 kB / 422.6 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001493/0.2714, allocations: 19.94 kB / 422.7 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006074/0.272, allocations: 55.94 kB / 422.7 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.2721, allocations: 56.48 kB / 422.8 MB, free: 6.555 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.479e-05/0.2722, allocations: 16 kB / 422.8 MB, free: 6.539 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001213/0.2734, allocations: 1.079 MB / 423.9 MB, free: 5.465 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2734, allocations: 0 / 423.9 MB, free: 5.465 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001057/0.2744, allocations: 364 kB / 424.2 MB, free: 5.109 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (speed.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 (60): * Single equations (assignments): 57 * 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 {(2,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.002647/0.2771, allocations: 2.277 MB / 426.5 MB, free: 2.777 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002117/0.2792, allocations: 1.631 MB / 428.1 MB, free: 1.098 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2792, allocations: 0 / 428.1 MB, free: 1.098 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009723/0.2802, allocations: 0.7752 MB / 428.9 MB, free: 276 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001751/0.282, allocations: 378.3 kB / 429.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02131/0.3033, allocations: 17.15 MB / 446.4 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009011/0.3042, allocations: 1.472 MB / 447.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008922/0.3051, allocations: 354 kB / 448.3 MB, free: 11.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006889/0.3058, allocations: 0.636 MB / 448.9 MB, free: 10.61 MB / 366.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3058, allocations: 0 / 448.9 MB, free: 10.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.898/3.204, allocations: 33.53 MB / 482.4 MB, free: 9.492 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002191/3.204, allocations: 249.1 kB / 482.7 MB, free: 9.234 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.247/5.452, allocations: 10.12 kB / 482.7 MB, free: 9.227 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.32 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches