Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001457/0.001457, allocations: 115.6 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001824/0.001824, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 60.34 kB / 306.6 MB, free: 0.8477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08436/0.08554, allocations: 50.53 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01247/0.09804, allocations: 10.86 MB / 368 MB, free: 3.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1571/0.2552, allocations: 3.616 MB / 371.6 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001736/0.257, allocations: 65.03 kB / 371.6 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002364/0.2594, allocations: 0.7247 MB / 372.4 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002789/0.2622, allocations: 0.7696 MB / 373.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001225/0.2634, allocations: 410.4 kB / 373.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00361/0.2671, allocations: 2.93 MB / 376.5 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003707/0.2708, allocations: 2.733 MB / 379.2 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00246/0.2733, allocations: 1.392 MB / 380.6 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002804/0.2761, allocations: 1.785 MB / 382.4 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001172/0.2773, allocations: 375.9 kB / 382.7 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001694/0.279, allocations: 483.1 kB / 383.2 MB, free: 7.531 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00149/0.2805, allocations: 1.074 MB / 384.3 MB, free: 6.969 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00212/0.2826, allocations: 1.671 MB / 386 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003743/0.2864, allocations: 4.839 MB / 390.8 MB, free: 3.488 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2864, allocations: 0 / 390.8 MB, free: 3.488 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2864, allocations: 0 / 390.8 MB, free: 3.488 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.833e-05/0.2865, allocations: 5.156 kB / 390.8 MB, free: 3.484 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.005522/0.292, allocations: 3.394 MB / 394.2 MB, free: 1.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.292, allocations: 8.406 kB / 394.2 MB, free: 1.16 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000388/0.2924, allocations: 371.3 kB / 394.6 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008565/0.2933, allocations: 343.5 kB / 394.9 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002576/0.2959, allocations: 1.777 MB / 396.7 MB, free: 15.47 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000147/0.296, allocations: 194.4 kB / 396.9 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003299/0.2964, allocations: 255.5 kB / 397.1 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004983/0.3014, allocations: 3.276 MB / 400.4 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.674e-05/0.3015, allocations: 17.39 kB / 400.4 MB, free: 13.35 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002284/0.3017, allocations: 98.94 kB / 400.5 MB, free: 13.28 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001186/0.3018, allocations: 125 kB / 400.6 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004291/0.3061, allocations: 2.747 MB / 403.4 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01515/0.3213, allocations: 10.48 MB / 413.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001787/0.3231, allocations: 1.363 MB / 415.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001196/0.3243, allocations: 0.7843 MB / 416 MB, free: 13.56 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002803/0.3246, allocations: 218 kB / 416.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.3247, allocations: 39.56 kB / 416.3 MB, free: 13.26 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 2.665e-06/0.3247, allocations: 0 / 416.3 MB, free: 13.26 MB / 334.1 MB Notification: Performance of matching and sorting (n=123): time 0.01471/0.3394, allocations: 6.905 MB / 423.2 MB, free: 6.258 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/0.3394, allocations: 64.41 kB / 423.2 MB, free: 6.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002981/0.3424, allocations: 1.798 MB / 425 MB, free: 4.383 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001178/0.3426, allocations: 48.23 kB / 425.1 MB, free: 4.332 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008642/0.3434, allocations: 1.272 MB / 426.3 MB, free: 3.047 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003564/0.3438, allocations: 425.9 kB / 426.8 MB, free: 2.637 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004915/0.3443, allocations: 303.2 kB / 427.1 MB, free: 2.336 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.3445, allocations: 305.1 kB / 427.4 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001271/0.3457, allocations: 0.773 MB / 428.1 MB, free: 1.262 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001884/0.3476, allocations: 1.296 MB / 429.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00308/0.3507, allocations: 2.208 MB / 431.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.414e-05/0.3508, allocations: 4 kB / 431.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004447/0.3552, allocations: 2.478 MB / 434.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.261e-05/0.3553, allocations: 15.94 kB / 434.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.686e-05/0.3553, allocations: 16 kB / 434.1 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006234/0.3559, allocations: 242.5 kB / 434.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001464/0.3574, allocations: 415.3 kB / 434.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002736/0.3601, allocations: 3.245 MB / 438 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001652/0.3618, allocations: 127.8 kB / 438.2 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001553/0.362, allocations: 71.98 kB / 438.2 MB, free: 6.398 MB / 350.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.001498/0.3635, allocations: 0.8174 MB / 439 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005156/0.364, allocations: 185.7 kB / 439.2 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003551/0.3676, allocations: 2.046 MB / 441.3 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.3676, allocations: 12 kB / 441.3 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.3676, allocations: 4 kB / 441.3 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.333e-05/0.3676, allocations: 7.969 kB / 441.3 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008743/0.3764, allocations: 4.754 MB / 446 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.924e-06/0.3764, allocations: 3.984 kB / 446.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00114/0.3775, allocations: 267.6 kB / 446.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005554/0.3781, allocations: 203.5 kB / 446.5 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001016/0.3782, allocations: 31.88 kB / 446.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00255/0.3808, allocations: 3.215 MB / 449.8 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/0.3808, allocations: 3.938 kB / 449.8 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004593/0.3854, allocations: 3.133 MB / 452.9 MB, free: 7.262 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001023/0.3865, allocations: 430.6 kB / 453.3 MB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004923/0.387, allocations: 27.94 kB / 453.3 MB, free: 6.793 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001212/0.3882, allocations: 99.8 kB / 453.4 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001802/0.3884, allocations: 72.89 kB / 453.5 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.439e-05/0.3885, allocations: 32.06 kB / 453.5 MB, free: 6.594 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00221/0.3907, allocations: 1.232 MB / 454.8 MB, free: 5.371 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3907, allocations: 0 / 454.8 MB, free: 5.371 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00186/0.3926, allocations: 488 kB / 455.3 MB, free: 4.895 MB / 366.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.005035/0.3976, allocations: 3.779 MB / 459 MB, free: 1.051 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005121/0.4027, allocations: 2.992 MB / 462 MB, free: 14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.4028, allocations: 4.062 kB / 462 MB, free: 13.99 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001813/0.4046, allocations: 1.335 MB / 463.4 MB, free: 12.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002806/0.4074, allocations: 497.5 kB / 463.8 MB, free: 12.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03706/0.4445, allocations: 21.76 MB / 485.6 MB, free: 4.695 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002094/0.4466, allocations: 2.014 MB / 487.6 MB, free: 2.648 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00163/0.4483, allocations: 0.496 MB / 488.1 MB, free: 2.148 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001439/0.4497, allocations: 1.015 MB / 489.1 MB, free: 1.133 MB / 398.1 MB Notification: Performance of SimCode: time 9.31e-07/0.4497, allocations: 0 / 489.1 MB, free: 1.133 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08384/0.5336, allocations: 45.04 MB / 0.5216 GB, free: 4.539 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002112/0.5338, allocations: 265.6 kB / 0.5219 GB, free: 4.277 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.867/3.401, allocations: 0 / 0.5219 GB, free: 4.277 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches