Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.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_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001104/0.001104, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001095/0.001095, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 227.4 MB / 246.3 MB, free: 9.047 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001098/0.001098, allocations: 61.94 kB / 306.4 MB, free: 0.6953 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0785/0.07962, allocations: 50.53 MB / 356.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01155/0.0912, allocations: 11.82 MB / 368.7 MB, free: 2.285 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1419/0.2331, allocations: 3.981 MB / 372.7 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00178/0.2349, allocations: 72.59 kB / 372.8 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001904/0.2368, allocations: 0.7756 MB / 373.5 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0023/0.2392, allocations: 0.8671 MB / 374.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009284/0.2401, allocations: 0.4935 MB / 374.9 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003361/0.2435, allocations: 3.717 MB / 378.6 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00253/0.246, allocations: 2.623 MB / 381.2 MB, free: 7.891 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001711/0.2477, allocations: 1.389 MB / 382.6 MB, free: 7.285 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002059/0.2498, allocations: 1.949 MB / 384.6 MB, free: 6.496 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005046/0.2503, allocations: 264.5 kB / 384.8 MB, free: 6.496 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000926/0.2512, allocations: 399.3 kB / 385.2 MB, free: 6.461 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001121/0.2524, allocations: 1.086 MB / 386.3 MB, free: 5.973 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001871/0.2543, allocations: 1.752 MB / 388.1 MB, free: 4.871 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00378/0.258, allocations: 5.469 MB / 393.5 MB, free: 1.457 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2581, allocations: 0 / 393.5 MB, free: 1.457 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.041e-06/0.2581, allocations: 5.562 kB / 393.5 MB, free: 1.453 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.508e-05/0.2582, allocations: 0 / 393.5 MB, free: 1.453 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.006857/0.265, allocations: 3.946 MB / 397.5 MB, free: 14.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.2651, allocations: 10.03 kB / 397.5 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004974/0.2656, allocations: 421.4 kB / 397.9 MB, free: 14.46 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001096/0.2667, allocations: 418.5 kB / 398.3 MB, free: 14.26 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003126/0.2698, allocations: 2.069 MB / 400.4 MB, free: 12.83 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001771/0.27, allocations: 230.9 kB / 400.6 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003803/0.2704, allocations: 298 kB / 400.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005967/0.2764, allocations: 3.849 MB / 404.8 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.451e-05/0.2765, allocations: 11.91 kB / 404.8 MB, free: 9.363 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002654/0.2767, allocations: 122.5 kB / 404.9 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001419/0.2769, allocations: 153.7 kB / 405 MB, free: 9.094 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005336/0.2822, allocations: 3.255 MB / 408.3 MB, free: 5.828 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01827/0.3005, allocations: 12.15 MB / 420.4 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002452/0.303, allocations: 1.948 MB / 422.4 MB, free: 7.355 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00178/0.3048, allocations: 1.167 MB / 423.5 MB, free: 6.188 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002996/0.3051, allocations: 213.9 kB / 423.8 MB, free: 5.949 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.358e-05/0.3052, allocations: 47.88 kB / 423.8 MB, free: 5.895 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 3.096e-06/0.3052, allocations: 0 / 423.8 MB, free: 5.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.01334/0.3185, allocations: 7.009 MB / 430.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.086e-05/0.3186, allocations: 64.72 kB / 430.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003035/0.3217, allocations: 2.04 MB / 432.9 MB, free: 12.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001321/0.3218, allocations: 49.7 kB / 433 MB, free: 12.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001016/0.3228, allocations: 1.464 MB / 434.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004215/0.3233, allocations: 0.533 MB / 435 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005213/0.3238, allocations: 347.2 kB / 435.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.3239, allocations: 313 kB / 435.6 MB, free: 9.895 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001306/0.3252, allocations: 0.8706 MB / 436.5 MB, free: 9.023 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001694/0.3269, allocations: 1.454 MB / 437.9 MB, free: 7.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003016/0.3299, allocations: 2.504 MB / 440.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.084e-05/0.33, allocations: 8 kB / 440.4 MB, free: 4.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004752/0.3347, allocations: 3.01 MB / 443.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.3348, allocations: 12 kB / 443.5 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.149e-05/0.3348, allocations: 20 kB / 443.5 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008474/0.3356, allocations: 391.3 kB / 443.9 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001584/0.3372, allocations: 475.2 kB / 444.3 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005663/0.3429, allocations: 6.137 MB / 450.5 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001638/0.3446, allocations: 139.8 kB / 450.6 MB, free: 9.957 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/0.3447, allocations: 88 kB / 450.7 MB, free: 9.871 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001553/0.3463, allocations: 0.9343 MB / 451.6 MB, free: 8.926 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003698/0.3466, allocations: 217.2 kB / 451.8 MB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00404/0.3507, allocations: 2.598 MB / 454.4 MB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-05/0.3507, allocations: 12 kB / 454.4 MB, free: 6.059 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.3507, allocations: 7.984 kB / 454.5 MB, free: 6.051 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.3507, allocations: 3.984 kB / 454.5 MB, free: 6.047 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009276/0.36, allocations: 5.85 MB / 460.3 MB, free: 84 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.07e-05/0.3601, allocations: 4.109 kB / 460.3 MB, free: 80 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001254/0.3613, allocations: 303.6 kB / 460.6 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009783/0.3623, allocations: 409.3 kB / 461 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001143/0.3624, allocations: 39.98 kB / 461 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006675/0.3691, allocations: 7.581 MB / 468.6 MB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.3692, allocations: 4 kB / 468.6 MB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0057/0.3749, allocations: 3.839 MB / 472.5 MB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001125/0.376, allocations: 486.1 kB / 472.9 MB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003046/0.3763, allocations: 36 kB / 473 MB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001026/0.3774, allocations: 99.88 kB / 473.1 MB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002622/0.3776, allocations: 113 kB / 473.2 MB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.712e-05/0.3777, allocations: 43.98 kB / 473.2 MB, free: 2.504 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002081/0.3798, allocations: 1.386 MB / 474.6 MB, free: 1.098 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3798, allocations: 4 kB / 474.6 MB, free: 1.094 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002004/0.3818, allocations: 0.5625 MB / 475.2 MB, free: 0.5312 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.der1.u) * 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 (146): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%), (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.005951/0.3878, allocations: 4.486 MB / 479.7 MB, free: 11.94 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003959/0.3918, allocations: 2.624 MB / 482.3 MB, free: 9.258 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.782e-06/0.3918, allocations: 4 kB / 482.3 MB, free: 9.254 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002077/0.3939, allocations: 1.566 MB / 483.9 MB, free: 7.641 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002852/0.3968, allocations: 0.5289 MB / 484.4 MB, free: 7.117 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03989/0.4367, allocations: 25.96 MB / 0.4984 GB, free: 11.03 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001998/0.4387, allocations: 2.259 MB / 0.5006 GB, free: 8.742 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001797/0.4405, allocations: 0.5299 MB / 0.5011 GB, free: 8.207 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001512/0.442, allocations: 1.19 MB / 0.5023 GB, free: 7.016 MB / 430.1 MB Notification: Performance of SimCode: time 1.022e-06/0.442, allocations: 0 / 0.5023 GB, free: 7.016 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2327/0.6748, allocations: 52 MB / 0.5531 GB, free: 138 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001368/0.675, allocations: 254.4 kB / 0.5533 GB, free: 137.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.779/3.454, allocations: 0 / 0.5533 GB, free: 137.8 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches