Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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: translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001073/0.001073, allocations: 98.7 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001347/0.001347, allocations: 197.7 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2064/0.2064, allocations: 45.92 MB / 344 MB, free: 12.12 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002572/0.0002572, allocations: 4 kB / 417.9 MB, free: 20.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1395, allocations: 63.46 MB / 481.4 MB, free: 5.395 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01233/0.1518, allocations: 9.568 MB / 491 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008681/0.1606, allocations: 3.808 MB / 494.8 MB, free: 7.969 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002441/0.1631, allocations: 63.62 kB / 494.8 MB, free: 7.906 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003177/0.1663, allocations: 0.7268 MB / 495.6 MB, free: 7.176 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004256/0.1705, allocations: 0.8528 MB / 496.4 MB, free: 6.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001781/0.1723, allocations: 331.6 kB / 496.7 MB, free: 5.996 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005811/0.1782, allocations: 2.169 MB / 498.9 MB, free: 3.824 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00328/0.1815, allocations: 2.116 MB / 0.4893 GB, free: 1.676 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002084/0.1836, allocations: 1.055 MB / 0.4903 GB, free: 0.6172 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002502/0.1861, allocations: 1.413 MB / 0.4917 GB, free: 15.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005989/0.1867, allocations: 164 kB / 0.4918 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009188/0.1877, allocations: 251.9 kB / 0.4921 GB, free: 14.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009257/0.1886, allocations: 0.8646 MB / 0.4929 GB, free: 13.92 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008914/0.1895, allocations: 0.6328 MB / 0.4935 GB, free: 13.28 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005108/0.1946, allocations: 4.429 MB / 0.4979 GB, free: 8.844 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1946, allocations: 0 / 0.4979 GB, free: 8.844 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.388e-06/0.1947, allocations: 0 / 0.4979 GB, free: 8.844 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002093/0.1949, allocations: 0 / 0.4979 GB, free: 8.844 MB / 382.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.008974/0.2039, allocations: 3.256 MB / 0.501 GB, free: 5.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.702e-05/0.2039, allocations: 12.03 kB / 0.5011 GB, free: 5.508 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002186/0.2061, allocations: 407.5 kB / 0.5014 GB, free: 5.105 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004948/0.2111, allocations: 1.985 MB / 0.5034 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002495/0.2114, allocations: 221.7 kB / 0.5036 GB, free: 2.848 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008222/0.2122, allocations: 283.9 kB / 0.5039 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3154/0.5276, allocations: 3.671 MB / 0.5074 GB, free: 23.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001113/0.5278, allocations: 7.891 kB / 0.5075 GB, free: 23.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003701/0.5282, allocations: 115.4 kB / 0.5076 GB, free: 23.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003085/0.5285, allocations: 143.9 kB / 0.5077 GB, free: 23.76 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007476/0.536, allocations: 3.128 MB / 0.5108 GB, free: 23.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02538/0.5614, allocations: 11.5 MB / 0.522 GB, free: 21.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003176/0.5646, allocations: 2.114 MB / 0.5241 GB, free: 20.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002854/0.5649, allocations: 208.6 kB / 0.5243 GB, free: 20.38 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.879e-05/0.565, allocations: 48.06 kB / 0.5243 GB, free: 20.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.387e-06/0.565, allocations: 4 kB / 0.5243 GB, free: 20.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01817/0.5832, allocations: 7.934 MB / 0.532 GB, free: 16.72 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.625e-05/0.5833, allocations: 70.75 kB / 0.5321 GB, free: 16.65 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003138/0.5864, allocations: 1.892 MB / 0.534 GB, free: 15.61 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003423/0.5868, allocations: 51.52 kB / 0.534 GB, free: 15.56 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008374/0.5876, allocations: 1.366 MB / 0.5353 GB, free: 14.36 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003989/0.588, allocations: 0.5243 MB / 0.5359 GB, free: 13.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.212e-05/0.5881, allocations: 37.14 kB / 0.5359 GB, free: 13.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.5883, allocations: 375.7 kB / 0.5363 GB, free: 13.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001377/0.5896, allocations: 0.8727 MB / 0.5371 GB, free: 13.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001443/0.5911, allocations: 1.324 MB / 0.5384 GB, free: 12.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00145/0.5926, allocations: 1.082 MB / 0.5395 GB, free: 11.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.868e-06/0.5926, allocations: 3.719 kB / 0.5395 GB, free: 11.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005216/0.5978, allocations: 2.882 MB / 0.5423 GB, free: 9.219 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.918e-05/0.5979, allocations: 9.594 kB / 0.5423 GB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.154e-05/0.5979, allocations: 16 kB / 0.5423 GB, free: 9.195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009121/0.5989, allocations: 367.7 kB / 0.5426 GB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00166/0.6005, allocations: 461.1 kB / 0.5431 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004845/0.6054, allocations: 6.092 MB / 0.549 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002308/0.6077, allocations: 123.8 kB / 0.5492 GB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001573/0.6079, allocations: 68 kB / 0.5492 GB, free: 1.766 MB / 382.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 (210): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002065/0.61, allocations: 0.9107 MB / 0.5501 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005485/0.6105, allocations: 209.5 kB / 0.5503 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005331/0.6159, allocations: 2.884 MB / 0.5531 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.997e-05/0.6159, allocations: 16 kB / 0.5531 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.635e-05/0.616, allocations: 8 kB / 0.5531 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.065e-05/0.616, allocations: 11.62 kB / 0.5532 GB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01221/0.6282, allocations: 6.033 MB / 0.5591 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-05/0.6283, allocations: 4 kB / 0.5591 GB, free: 7.684 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/0.6294, allocations: 239.3 kB / 0.5593 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002087/0.6315, allocations: 0.8019 MB / 0.5601 GB, free: 6.652 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001193/0.6316, allocations: 43.81 kB / 0.5601 GB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01188/0.6435, allocations: 10.12 MB / 0.57 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.692e-06/0.6435, allocations: 11.91 kB / 0.57 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007181/0.6507, allocations: 4.368 MB / 0.5743 GB, free: 7.574 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001425/0.6522, allocations: 490.3 kB / 0.5747 GB, free: 7.074 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002929/0.6525, allocations: 36 kB / 0.5748 GB, free: 7.039 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00108/0.6536, allocations: 91.89 kB / 0.5749 GB, free: 6.949 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003523/0.654, allocations: 128.9 kB / 0.575 GB, free: 6.828 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/0.6541, allocations: 43.98 kB / 0.575 GB, free: 6.785 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002369/0.6564, allocations: 1.288 MB / 0.5763 GB, free: 5.477 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6565, allocations: 0 / 0.5763 GB, free: 5.477 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002975/0.6594, allocations: 0.5697 MB / 0.5768 GB, free: 4.91 MB / 414.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(5,84.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004174/0.6599, allocations: 162.6 kB / 0.577 GB, free: 4.758 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004304/0.6642, allocations: 2.582 MB / 0.5795 GB, free: 2.172 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/0.6642, allocations: 4.125 kB / 0.5795 GB, free: 2.168 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002614/0.6668, allocations: 1.679 MB / 0.5812 GB, free: 500 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002714/0.6696, allocations: 491.8 kB / 0.5816 GB, free: 12 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01278/0.6824, allocations: 6.835 MB / 0.5883 GB, free: 9.121 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002164/0.6846, allocations: 2.268 MB / 0.5905 GB, free: 6.824 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001961/0.6865, allocations: 469.7 kB / 0.591 GB, free: 6.363 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004549/0.687, allocations: 153.7 kB / 0.5911 GB, free: 6.215 MB / 430.1 MB Notification: Performance of SimCode: time 2.054e-06/0.687, allocations: 0 / 0.5911 GB, free: 6.215 MB / 430.1 MB Notification: Performance of Templates: time 0.05747/0.7445, allocations: 29.48 MB / 0.6199 GB, free: 9.051 MB / 462.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches