Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_4_0_0_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.001428/0.001428, allocations: 114.4 kB / 17.78 MB, free: 5.266 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.001518/0.001518, allocations: 187.8 kB / 18.71 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 222.9 MB / 242.4 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2404/0.2404, allocations: 44.19 MB / 336.8 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 67.89 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5083/0.5097, allocations: 60.81 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01461/0.5244, allocations: 11.68 MB / 0.5298 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01248/0.537, allocations: 3.892 MB / 0.5336 GB, free: 7.867 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003781/0.5408, allocations: 72.88 kB / 0.5337 GB, free: 7.848 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003372/0.5442, allocations: 0.8786 MB / 0.5345 GB, free: 7.168 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004543/0.5488, allocations: 0.9465 MB / 0.5355 GB, free: 6.367 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002396/0.5512, allocations: 0.5117 MB / 0.536 GB, free: 5.918 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007319/0.5585, allocations: 3.332 MB / 0.5392 GB, free: 3.895 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00819/0.5668, allocations: 3.048 MB / 0.5422 GB, free: 2.332 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004274/0.5711, allocations: 1.555 MB / 0.5437 GB, free: 1.406 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005148/0.5763, allocations: 2.01 MB / 0.5457 GB, free: 56 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001921/0.5782, allocations: 432.1 kB / 0.5461 GB, free: 15.64 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002727/0.581, allocations: 0.531 MB / 0.5466 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002346/0.5834, allocations: 1.223 MB / 0.5478 GB, free: 13.88 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004552/0.5879, allocations: 1.905 MB / 0.5497 GB, free: 11.97 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008817/0.5968, allocations: 5.576 MB / 0.5551 GB, free: 6.375 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.09e-05/0.5968, allocations: 0 / 0.5551 GB, free: 6.375 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.218e-06/0.5969, allocations: 0 / 0.5551 GB, free: 6.375 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003252/0.5972, allocations: 0 / 0.5551 GB, free: 6.375 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.0122/0.6094, allocations: 3.841 MB / 0.5589 GB, free: 2.465 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.306e-05/0.6095, allocations: 12.03 kB / 0.5589 GB, free: 2.453 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001215/0.6107, allocations: 409.2 kB / 0.5593 GB, free: 2.043 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001704/0.6124, allocations: 392.6 kB / 0.5596 GB, free: 1.656 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005436/0.6179, allocations: 2.083 MB / 0.5617 GB, free: 15.52 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000251/0.6182, allocations: 217.8 kB / 0.5619 GB, free: 15.3 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005567/0.6187, allocations: 283.9 kB / 0.5622 GB, free: 15.03 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007287/0.626, allocations: 3.735 MB / 0.5658 GB, free: 11.22 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.623e-05/0.6262, allocations: 4 kB / 0.5658 GB, free: 11.22 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003064/0.6265, allocations: 120 kB / 0.5659 GB, free: 11.1 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000179/0.6267, allocations: 141.5 kB / 0.5661 GB, free: 10.96 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006556/0.6332, allocations: 3.168 MB / 0.5691 GB, free: 7.781 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02281/0.6561, allocations: 11.44 MB / 0.5803 GB, free: 12.04 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003915/0.66, allocations: 2.172 MB / 0.5824 GB, free: 9.75 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002081/0.6621, allocations: 1.219 MB / 0.5836 GB, free: 8.531 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000459/0.6626, allocations: 215.4 kB / 0.5838 GB, free: 8.281 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.72e-05/0.6627, allocations: 51.81 kB / 0.5839 GB, free: 8.223 MB / 446.1 MB Notification: Performance of pre-optimization done (n=139): time 4.127e-06/0.6627, allocations: 0 / 0.5839 GB, free: 8.223 MB / 446.1 MB Notification: Performance of matching and sorting (n=154): time 0.01869/0.6814, allocations: 7.873 MB / 0.5916 GB, free: 284 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.676e-05/0.6815, allocations: 72.72 kB / 0.5916 GB, free: 200 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004463/0.686, allocations: 1.937 MB / 0.5935 GB, free: 14.21 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002087/0.6862, allocations: 53.7 kB / 0.5936 GB, free: 14.15 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001265/0.6875, allocations: 1.366 MB / 0.5949 GB, free: 12.77 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005986/0.6881, allocations: 0.5199 MB / 0.5954 GB, free: 12.25 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007235/0.6888, allocations: 319.3 kB / 0.5957 GB, free: 11.93 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.6889, allocations: 301.1 kB / 0.596 GB, free: 11.63 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00158/0.6905, allocations: 0.8862 MB / 0.5969 GB, free: 10.74 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001816/0.6924, allocations: 1.356 MB / 0.5982 GB, free: 9.191 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003347/0.6957, allocations: 2.377 MB / 0.6005 GB, free: 6.625 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-05/0.6958, allocations: 8 kB / 0.6005 GB, free: 6.617 MB / 462.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005493/0.7013, allocations: 2.943 MB / 0.6034 GB, free: 3.633 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.062e-05/0.7013, allocations: 12 kB / 0.6034 GB, free: 3.621 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.911e-05/0.7013, allocations: 12 kB / 0.6034 GB, free: 3.609 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009484/0.7023, allocations: 391.4 kB / 0.6038 GB, free: 3.215 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001731/0.704, allocations: 447.3 kB / 0.6042 GB, free: 2.777 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007155/0.7112, allocations: 6.757 MB / 0.6108 GB, free: 11.61 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002936/0.7142, allocations: 123.8 kB / 0.611 GB, free: 11.48 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003904/0.7146, allocations: 76.09 kB / 0.611 GB, free: 11.41 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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.002237/0.7169, allocations: 0.9031 MB / 0.6119 GB, free: 10.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001103/0.718, allocations: 205.4 kB / 0.6121 GB, free: 10.29 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006148/0.7242, allocations: 2.919 MB / 0.615 GB, free: 7.355 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.566e-05/0.7242, allocations: 16 kB / 0.615 GB, free: 7.34 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.001e-05/0.7242, allocations: 4 kB / 0.615 GB, free: 7.336 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.757e-05/0.7242, allocations: 15.91 kB / 0.615 GB, free: 7.32 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01119/0.7354, allocations: 6.126 MB / 0.621 GB, free: 1.062 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.201e-05/0.7355, allocations: 4 kB / 0.621 GB, free: 1.059 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001061/0.7365, allocations: 235.6 kB / 0.6212 GB, free: 0.8281 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002022/0.7386, allocations: 0.8002 MB / 0.622 GB, free: 20 kB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001365/0.7387, allocations: 43.98 kB / 0.622 GB, free: 15.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0123/0.751, allocations: 10.75 MB / 0.6325 GB, free: 4.797 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.737e-06/0.7511, allocations: 11.92 kB / 0.6325 GB, free: 4.785 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007371/0.7585, allocations: 4.176 MB / 0.6366 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001413/0.7599, allocations: 482.4 kB / 0.6371 GB, free: 40 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005398/0.7605, allocations: 32 kB / 0.6371 GB, free: 8 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001433/0.7619, allocations: 99.88 kB / 0.6372 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000305/0.7622, allocations: 125 kB / 0.6373 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001214/0.7624, allocations: 47.98 kB / 0.6374 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002725/0.7651, allocations: 1.336 MB / 0.6387 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.61e-07/0.7651, allocations: 192 / 0.6387 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003/0.7681, allocations: 0.5703 MB / 0.6392 GB, free: 13.81 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.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 (116): * Single equations (assignments): 113 * 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.007679/0.7758, allocations: 4.827 MB / 0.6439 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00426/0.7801, allocations: 2.648 MB / 0.6465 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.7801, allocations: 4.062 kB / 0.6465 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002449/0.7826, allocations: 1.638 MB / 0.6481 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00342/0.786, allocations: 0.524 MB / 0.6486 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03835/0.8244, allocations: 21.49 MB / 0.6696 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002636/0.8271, allocations: 2.221 MB / 0.6718 GB, free: 11.53 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001546/0.8286, allocations: 473.7 kB / 0.6722 GB, free: 11.07 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001626/0.8303, allocations: 1.128 MB / 0.6733 GB, free: 9.938 MB / 0.5294 GB Notification: Performance of SimCode: time 1.102e-06/0.8303, allocations: 4 kB / 0.6734 GB, free: 9.934 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3739/1.204, allocations: 56.2 MB / 0.7282 GB, free: 174.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.36/14.57, allocations: 2.219 kB / 0.7282 GB, free: 174.3 MB / 0.5606 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches