Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.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_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001243/0.001242, allocations: 100.2 kB / 17.2 MB, free: 6.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001255/0.001255, allocations: 209.7 kB / 18.14 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 227.4 MB / 246.3 MB, free: 10.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001112, allocations: 64.42 kB / 306.4 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08247/0.0836, allocations: 50.53 MB / 356.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01061/0.09424, allocations: 10.28 MB / 367.2 MB, free: 3.973 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006728/0.101, allocations: 3.458 MB / 370.6 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001567/0.1026, allocations: 55.75 kB / 370.7 MB, free: 452 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1412/0.2438, allocations: 0.6771 MB / 371.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002308/0.2462, allocations: 0.7506 MB / 372.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007054/0.2469, allocations: 371.7 kB / 372.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002696/0.2496, allocations: 3.094 MB / 375.6 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002012/0.2516, allocations: 2.031 MB / 377.6 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001669/0.2533, allocations: 1.111 MB / 378.7 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001576/0.2549, allocations: 1.528 MB / 380.2 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003325/0.2552, allocations: 207.5 kB / 380.4 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007056/0.2559, allocations: 325.1 kB / 380.8 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007548/0.2567, allocations: 0.811 MB / 381.6 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001213/0.2579, allocations: 1.375 MB / 382.9 MB, free: 7.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003004/0.2609, allocations: 4.241 MB / 387.2 MB, free: 5.848 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.2609, allocations: 0 / 387.2 MB, free: 5.848 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.42e-07/0.261, allocations: 0 / 387.2 MB, free: 5.848 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.006e-05/0.261, allocations: 1.094 kB / 387.2 MB, free: 5.848 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.005003/0.266, allocations: 3.065 MB / 390.2 MB, free: 3.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.2661, allocations: 9.594 kB / 390.3 MB, free: 3.73 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003542/0.2664, allocations: 320.9 kB / 390.6 MB, free: 3.492 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008908/0.2673, allocations: 314.5 kB / 390.9 MB, free: 3.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002172/0.2695, allocations: 1.577 MB / 392.5 MB, free: 2.215 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001235/0.2696, allocations: 172.8 kB / 392.6 MB, free: 2.133 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002743/0.2699, allocations: 229.5 kB / 392.8 MB, free: 2.051 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004301/0.2742, allocations: 2.914 MB / 395.8 MB, free: 324 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.898e-05/0.2743, allocations: 8.688 kB / 395.8 MB, free: 320 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001869/0.2745, allocations: 92.05 kB / 395.9 MB, free: 248 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001026/0.2746, allocations: 113.9 kB / 396 MB, free: 228 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003943/0.2786, allocations: 2.431 MB / 398.4 MB, free: 14.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01366/0.2922, allocations: 9.126 MB / 407.5 MB, free: 6.223 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002271/0.2945, allocations: 1.702 MB / 409.2 MB, free: 4.414 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001692/0.2963, allocations: 0.9949 MB / 410.2 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002789/0.2965, allocations: 205.7 kB / 410.4 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.2966, allocations: 40.03 kB / 410.5 MB, free: 3.141 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 2.936e-06/0.2966, allocations: 7.938 kB / 410.5 MB, free: 3.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01414/0.3107, allocations: 6.566 MB / 417 MB, free: 12.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.122e-05/0.3108, allocations: 68.34 kB / 417.1 MB, free: 12.33 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002355/0.3132, allocations: 1.569 MB / 418.7 MB, free: 10.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001122/0.3133, allocations: 49.7 kB / 418.7 MB, free: 10.7 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007534/0.3141, allocations: 1.103 MB / 419.8 MB, free: 9.578 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003406/0.3144, allocations: 436.2 kB / 420.3 MB, free: 9.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004244/0.3149, allocations: 273.4 kB / 420.5 MB, free: 8.891 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.147e-05/0.315, allocations: 309.1 kB / 420.8 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001177/0.3161, allocations: 0.7066 MB / 421.5 MB, free: 7.879 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001441/0.3176, allocations: 1.138 MB / 422.7 MB, free: 6.562 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002663/0.3203, allocations: 1.964 MB / 424.6 MB, free: 4.418 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.852e-05/0.3203, allocations: 4 kB / 424.6 MB, free: 4.414 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004306/0.3246, allocations: 2.522 MB / 427.2 MB, free: 1.852 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/0.3247, allocations: 15.94 kB / 427.2 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.098e-05/0.3247, allocations: 12 kB / 427.2 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001015/0.3257, allocations: 424 kB / 427.6 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/0.327, allocations: 347.4 kB / 427.9 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006494/0.3335, allocations: 6.548 MB / 434.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001355/0.3348, allocations: 107.8 kB / 434.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001178/0.335, allocations: 63.98 kB / 434.7 MB, free: 9.945 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * 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 {(3,12,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.001273/0.3362, allocations: 0.7199 MB / 435.4 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002787/0.3365, allocations: 165.9 kB / 435.5 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003609/0.3401, allocations: 2.21 MB / 437.7 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/0.3402, allocations: 12 kB / 437.8 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.408e-05/0.3402, allocations: 4 kB / 437.8 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.3402, allocations: 11.97 kB / 437.8 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007151/0.3474, allocations: 4.791 MB / 442.6 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.286e-06/0.3474, allocations: 8.031 kB / 442.6 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008965/0.3483, allocations: 219.7 kB / 442.8 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001104/0.3494, allocations: 457.9 kB / 443.2 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.156e-05/0.3495, allocations: 35.98 kB / 443.3 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007077/0.3566, allocations: 7.973 MB / 451.2 MB, free: 8.652 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/0.3566, allocations: 8 kB / 451.2 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004813/0.3615, allocations: 3.214 MB / 454.5 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008441/0.3623, allocations: 398.9 kB / 454.9 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002363/0.3626, allocations: 31.98 kB / 454.9 MB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008554/0.3634, allocations: 83.91 kB / 455 MB, free: 4.812 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002194/0.3637, allocations: 96.75 kB / 455.1 MB, free: 4.719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.786e-05/0.3637, allocations: 43.98 kB / 455.1 MB, free: 4.676 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001447/0.3652, allocations: 1.067 MB / 456.2 MB, free: 3.613 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.919e-06/0.3652, allocations: 0 / 456.2 MB, free: 3.613 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001574/0.3668, allocations: 491.9 kB / 456.7 MB, free: 3.133 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.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 (107): * Single equations (assignments): 103 * 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 {(3,12,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.004938/0.3717, allocations: 3.858 MB / 460.5 MB, free: 15.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003387/0.3751, allocations: 2.296 MB / 462.8 MB, free: 12.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3751, allocations: 0 / 462.8 MB, free: 12.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002183/0.3773, allocations: 1.47 MB / 464.3 MB, free: 11.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002063/0.3794, allocations: 462.7 kB / 464.7 MB, free: 10.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03089/0.4103, allocations: 20.56 MB / 485.3 MB, free: 4.832 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001432/0.4118, allocations: 1.879 MB / 487.2 MB, free: 2.918 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001175/0.413, allocations: 390.8 kB / 487.6 MB, free: 2.531 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001041/0.414, allocations: 0.8819 MB / 488.4 MB, free: 1.652 MB / 398.1 MB Notification: Performance of SimCode: time 7.31e-07/0.414, allocations: 0 / 488.4 MB, free: 1.652 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06008/0.4741, allocations: 43.08 MB / 0.5191 GB, free: 6.988 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002223/0.4744, allocations: 251.2 kB / 0.5193 GB, free: 6.734 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.743/3.217, allocations: 0 / 0.5193 GB, free: 6.734 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches