Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 104.5 kB / 16.4 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001438/0.001438, allocations: 192.1 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.377/1.377, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1929/0.1929, allocations: 43.53 MB / 314.1 MB, free: 468 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002506/0.002506, allocations: 63.91 kB / 441.3 MB, free: 6.191 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1244, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01256/0.137, allocations: 11.64 MB / 0.4988 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007363/0.1444, allocations: 3.953 MB / 0.5026 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001897/0.1464, allocations: 67.62 kB / 0.5027 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002422/0.1489, allocations: 0.8615 MB / 0.5035 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003255/0.1522, allocations: 0.9473 MB / 0.5044 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001707/0.1539, allocations: 0.5188 MB / 0.505 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004378/0.1583, allocations: 3.34 MB / 0.5082 GB, free: 6.898 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003878/0.1622, allocations: 2.985 MB / 0.5111 GB, free: 3.852 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002317/0.1645, allocations: 1.557 MB / 0.5127 GB, free: 2.289 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002847/0.1674, allocations: 2.001 MB / 0.5146 GB, free: 288 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009162/0.1683, allocations: 436 kB / 0.515 GB, free: 15.85 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001307/0.1696, allocations: 0.5271 MB / 0.5155 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001411/0.1711, allocations: 1.227 MB / 0.5167 GB, free: 14.1 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002518/0.1736, allocations: 1.89 MB / 0.5186 GB, free: 12.2 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005386/0.179, allocations: 5.576 MB / 0.524 GB, free: 6.605 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.179, allocations: 4 kB / 0.524 GB, free: 6.602 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.179, allocations: 3.938 kB / 0.524 GB, free: 6.598 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001498/0.1792, allocations: 0 / 0.524 GB, free: 6.598 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.008879/0.1881, allocations: 3.825 MB / 0.5278 GB, free: 2.703 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.922e-05/0.1881, allocations: 11.89 kB / 0.5278 GB, free: 2.691 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009021/0.189, allocations: 409.2 kB / 0.5282 GB, free: 2.281 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00107/0.1901, allocations: 392.5 kB / 0.5285 GB, free: 1.895 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.202/0.3921, allocations: 1.957 MB / 0.5305 GB, free: 36.55 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002171/0.3924, allocations: 215.7 kB / 0.5307 GB, free: 36.54 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008106/0.3932, allocations: 282.5 kB / 0.5309 GB, free: 36.54 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006219/0.3994, allocations: 3.727 MB / 0.5346 GB, free: 36.27 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.831e-05/0.3995, allocations: 9.641 kB / 0.5346 GB, free: 36.27 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000235/0.3998, allocations: 114.1 kB / 0.5347 GB, free: 36.18 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001382/0.3999, allocations: 143 kB / 0.5348 GB, free: 36.17 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005123/0.4051, allocations: 3.17 MB / 0.5379 GB, free: 35.04 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01892/0.424, allocations: 11.44 MB / 0.5491 GB, free: 29.45 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003531/0.4276, allocations: 2.167 MB / 0.5512 GB, free: 28.19 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001772/0.4294, allocations: 1.222 MB / 0.5524 GB, free: 27.61 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002577/0.4297, allocations: 211.6 kB / 0.5526 GB, free: 27.41 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.4297, allocations: 52.78 kB / 0.5527 GB, free: 27.36 MB / 414.1 MB Notification: Performance of pre-optimization done (n=139): time 3.446e-06/0.4297, allocations: 0 / 0.5527 GB, free: 27.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.01547/0.4452, allocations: 8.2 MB / 0.5607 GB, free: 22.83 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.437e-05/0.4452, allocations: 75.09 kB / 0.5607 GB, free: 22.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002273/0.4475, allocations: 1.939 MB / 0.5626 GB, free: 21.7 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001276/0.4477, allocations: 49.61 kB / 0.5627 GB, free: 21.65 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005525/0.4482, allocations: 1.358 MB / 0.564 GB, free: 20.46 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002764/0.4485, allocations: 0.5232 MB / 0.5645 GB, free: 20.01 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004195/0.4489, allocations: 316.1 kB / 0.5648 GB, free: 19.83 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.428e-05/0.449, allocations: 309.3 kB / 0.5651 GB, free: 19.53 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001117/0.4501, allocations: 0.8861 MB / 0.566 GB, free: 18.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001195/0.4513, allocations: 1.345 MB / 0.5673 GB, free: 17.39 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002291/0.4536, allocations: 2.388 MB / 0.5696 GB, free: 14.81 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.4536, allocations: 4 kB / 0.5696 GB, free: 14.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.003818/0.4574, allocations: 2.932 MB / 0.5725 GB, free: 11.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/0.4575, allocations: 15.94 kB / 0.5725 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/0.4575, allocations: 12 kB / 0.5725 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007494/0.4583, allocations: 389.3 kB / 0.5729 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001459/0.4597, allocations: 440.9 kB / 0.5733 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004126/0.4639, allocations: 6.77 MB / 0.5799 GB, free: 3.816 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001488/0.4654, allocations: 119.9 kB / 0.58 GB, free: 3.699 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001311/0.4655, allocations: 68 kB / 0.5801 GB, free: 3.633 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (206): * Single equations (assignments): 202 * 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,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001257/0.4668, allocations: 0.9147 MB / 0.581 GB, free: 2.707 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003617/0.4672, allocations: 213.4 kB / 0.5812 GB, free: 2.496 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004137/0.4713, allocations: 2.897 MB / 0.584 GB, free: 15.58 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.339e-05/0.4713, allocations: 16 kB / 0.584 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.4714, allocations: 12 kB / 0.584 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.615e-05/0.4714, allocations: 7.969 kB / 0.5841 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01018/0.4816, allocations: 6.147 MB / 0.5901 GB, free: 9.301 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.667e-06/0.4816, allocations: 4 kB / 0.5901 GB, free: 9.297 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/0.4827, allocations: 239.6 kB / 0.5903 GB, free: 9.062 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002076/0.4848, allocations: 0.8119 MB / 0.5911 GB, free: 8.25 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001423/0.485, allocations: 43.98 kB / 0.5911 GB, free: 8.207 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01141/0.4964, allocations: 10.75 MB / 0.6016 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.4964, allocations: 8 kB / 0.6016 GB, free: 13.04 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006246/0.5027, allocations: 4.18 MB / 0.6057 GB, free: 8.781 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000973/0.5037, allocations: 486.4 kB / 0.6062 GB, free: 8.285 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002844/0.504, allocations: 36 kB / 0.6062 GB, free: 8.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/0.505, allocations: 95.88 kB / 0.6063 GB, free: 8.156 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002568/0.5053, allocations: 129 kB / 0.6064 GB, free: 8.031 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.371e-05/0.5054, allocations: 43.98 kB / 0.6065 GB, free: 7.988 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001817/0.5072, allocations: 1.333 MB / 0.6078 GB, free: 6.633 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5072, allocations: 4 kB / 0.6078 GB, free: 6.629 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001791/0.509, allocations: 0.5697 MB / 0.6083 GB, free: 6.062 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,2,100.0%), (5,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00663/0.5157, allocations: 4.823 MB / 0.613 GB, free: 1.152 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003833/0.5195, allocations: 2.644 MB / 0.6156 GB, free: 14.45 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.5195, allocations: 4 kB / 0.6156 GB, free: 14.45 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002395/0.5219, allocations: 1.641 MB / 0.6172 GB, free: 12.77 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002689/0.5247, allocations: 0.5444 MB / 0.6178 GB, free: 12.23 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03323/0.5579, allocations: 21.48 MB / 0.6387 GB, free: 6.039 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002163/0.5601, allocations: 2.221 MB / 0.6409 GB, free: 3.789 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001341/0.5615, allocations: 465.7 kB / 0.6413 GB, free: 3.332 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001541/0.563, allocations: 1.14 MB / 0.6425 GB, free: 2.191 MB / 478.1 MB Notification: Performance of SimCode: time 9.42e-07/0.563, allocations: 0 / 0.6425 GB, free: 2.191 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09927/0.6623, allocations: 56.1 MB / 0.6972 GB, free: 10 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.02/13.69, allocations: 27.72 kB / 0.6973 GB, free: 9.977 MB / 0.5294 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches