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.001378/0.001378, allocations: 113.9 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.001414/0.001414, 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.387/1.387, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 68.56 kB / 306.6 MB, free: 0.8477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08226/0.08361, allocations: 50.54 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01267/0.0963, allocations: 11.81 MB / 368.9 MB, free: 2.445 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1533/0.2496, allocations: 3.965 MB / 372.9 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001978/0.2516, allocations: 73.75 kB / 372.9 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002292/0.2539, allocations: 0.7777 MB / 373.7 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002929/0.2569, allocations: 0.8635 MB / 374.6 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001206/0.2581, allocations: 0.4933 MB / 375.1 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004323/0.2625, allocations: 3.393 MB / 378.5 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004035/0.2665, allocations: 3.096 MB / 381.6 MB, free: 7.852 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002788/0.2693, allocations: 1.595 MB / 383.2 MB, free: 7.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003181/0.2725, allocations: 2.071 MB / 385.2 MB, free: 6.188 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008827/0.2734, allocations: 435.1 kB / 385.7 MB, free: 6.188 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001383/0.2748, allocations: 0.5453 MB / 386.2 MB, free: 6.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001195/0.276, allocations: 1.26 MB / 387.5 MB, free: 5.504 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002237/0.2783, allocations: 1.942 MB / 389.4 MB, free: 4.219 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005091/0.2834, allocations: 5.615 MB / 395 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2834, allocations: 0 / 395 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2834, allocations: 0 / 395 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001327/0.2836, allocations: 4.922 kB / 395 MB, free: 0.8516 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.009843/0.2934, allocations: 3.938 MB / 399 MB, free: 14.17 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.2935, allocations: 14.44 kB / 399 MB, free: 14.17 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006938/0.2942, allocations: 430.3 kB / 399.4 MB, free: 13.85 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001489/0.2957, allocations: 413.2 kB / 399.8 MB, free: 13.65 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004019/0.2997, allocations: 2.065 MB / 401.9 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001948/0.2999, allocations: 228.8 kB / 402.1 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004152/0.3003, allocations: 302.9 kB / 402.4 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007118/0.3075, allocations: 3.853 MB / 406.2 MB, free: 8.078 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-05/0.3076, allocations: 15.89 kB / 406.3 MB, free: 8.062 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002769/0.3079, allocations: 117.4 kB / 406.4 MB, free: 7.949 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001524/0.308, allocations: 145.7 kB / 406.5 MB, free: 7.805 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005779/0.3138, allocations: 3.255 MB / 409.8 MB, free: 4.539 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01955/0.3334, allocations: 12.16 MB / 421.9 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002463/0.3359, allocations: 1.932 MB / 423.9 MB, free: 6.062 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001864/0.3378, allocations: 1.171 MB / 425 MB, free: 4.891 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003089/0.3381, allocations: 205.9 kB / 425.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/0.3381, allocations: 51.86 kB / 425.3 MB, free: 4.598 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 3.136e-06/0.3381, allocations: 4 kB / 425.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.01419/0.3523, allocations: 7.007 MB / 432.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.916e-05/0.3524, allocations: 72.66 kB / 432.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003551/0.356, allocations: 2.036 MB / 434.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001312/0.3561, allocations: 49.7 kB / 434.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001095/0.3572, allocations: 1.466 MB / 435.9 MB, free: 9.781 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005704/0.3578, allocations: 0.5312 MB / 436.5 MB, free: 9.254 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005605/0.3584, allocations: 355.2 kB / 436.8 MB, free: 8.902 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.193e-05/0.3585, allocations: 305.1 kB / 437.1 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001392/0.3599, allocations: 0.8745 MB / 438 MB, free: 7.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001903/0.3618, allocations: 1.446 MB / 439.4 MB, free: 6.035 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003324/0.3651, allocations: 2.505 MB / 441.9 MB, free: 3.285 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.378e-05/0.3652, allocations: 4 kB / 441.9 MB, free: 3.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005785/0.371, allocations: 3.014 MB / 444.9 MB, free: 232 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.192e-05/0.371, allocations: 14.66 kB / 445 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.857e-05/0.3711, allocations: 23.98 kB / 445 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009862/0.3721, allocations: 386.2 kB / 445.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001897/0.374, allocations: 479.2 kB / 445.8 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006692/0.3807, allocations: 6.694 MB / 452.5 MB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002127/0.3828, allocations: 139.6 kB / 452.7 MB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003785/0.3832, allocations: 83.98 kB / 452.7 MB, free: 8.008 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.001934/0.3852, allocations: 0.9382 MB / 453.7 MB, free: 7.059 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006346/0.3858, allocations: 209.4 kB / 453.9 MB, free: 6.852 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004912/0.3908, allocations: 2.602 MB / 456.5 MB, free: 4.207 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.455e-05/0.3908, allocations: 16 kB / 456.5 MB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.746e-05/0.3908, allocations: 4 kB / 456.5 MB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.659e-05/0.3908, allocations: 7.969 kB / 456.5 MB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01248/0.4033, allocations: 5.859 MB / 462.4 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-05/0.4034, allocations: 4 kB / 462.4 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001354/0.4047, allocations: 291.5 kB / 462.7 MB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001239/0.406, allocations: 410.4 kB / 463.1 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001492/0.4062, allocations: 39.98 kB / 463.1 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008059/0.4142, allocations: 8.271 MB / 471.4 MB, free: 4.645 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.108e-06/0.4143, allocations: 7.938 kB / 471.4 MB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006465/0.4207, allocations: 3.831 MB / 475.2 MB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001342/0.4221, allocations: 486.3 kB / 475.7 MB, free: 220 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006626/0.4228, allocations: 32 kB / 475.7 MB, free: 188 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001686/0.4245, allocations: 99.81 kB / 475.8 MB, free: 88 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000277/0.4248, allocations: 109.1 kB / 475.9 MB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001381/0.4249, allocations: 47.98 kB / 476 MB, free: 15.93 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002708/0.4276, allocations: 1.39 MB / 477.4 MB, free: 14.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.4277, allocations: 4 kB / 477.4 MB, free: 14.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00247/0.4301, allocations: 0.5625 MB / 477.9 MB, free: 13.96 MB / 398.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.006335/0.4365, allocations: 4.486 MB / 482.4 MB, free: 9.367 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006512/0.443, allocations: 3.558 MB / 486 MB, free: 5.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.443, allocations: 0 / 486 MB, free: 5.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002072/0.4451, allocations: 1.57 MB / 487.5 MB, free: 4.137 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003106/0.4482, allocations: 0.5499 MB / 488.1 MB, free: 3.598 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04695/0.4952, allocations: 25.96 MB / 0.502 GB, free: 7.512 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003206/0.4985, allocations: 2.255 MB / 0.5042 GB, free: 5.227 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002233/0.5007, allocations: 0.53 MB / 0.5047 GB, free: 4.691 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002043/0.5028, allocations: 1.187 MB / 0.5059 GB, free: 3.504 MB / 430.1 MB Notification: Performance of SimCode: time 1.222e-06/0.5028, allocations: 0 / 0.5059 GB, free: 3.504 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.288/0.7908, allocations: 53.22 MB / 0.5578 GB, free: 132.3 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001513/0.791, allocations: 265.9 kB / 0.5581 GB, free: 132 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.033/3.824, allocations: 4 kB / 0.5581 GB, free: 132 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