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.001274/0.001274, allocations: 109 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001416/0.001416, allocations: 210.8 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.4 MB / 247.6 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2144/0.2144, allocations: 46.1 MB / 345 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 79.86 kB / 482 MB, free: 4.094 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.2924, allocations: 62.43 MB / 0.5316 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01291/0.3053, allocations: 11.72 MB / 0.5431 GB, free: 4.355 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007649/0.313, allocations: 3.972 MB / 0.547 GB, free: 1.039 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001779/0.3148, allocations: 73.12 kB / 0.547 GB, free: 1.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002051/0.3169, allocations: 0.8659 MB / 0.5479 GB, free: 360 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002615/0.3195, allocations: 0.9509 MB / 0.5488 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.3206, allocations: 0.5119 MB / 0.5493 GB, free: 15.1 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003464/0.324, allocations: 3.344 MB / 0.5526 GB, free: 12.25 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003314/0.3274, allocations: 3.037 MB / 0.5555 GB, free: 9.152 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002036/0.3294, allocations: 1.577 MB / 0.5571 GB, free: 7.57 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002478/0.332, allocations: 2.012 MB / 0.5591 GB, free: 5.551 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005758/0.3326, allocations: 428 kB / 0.5595 GB, free: 5.133 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001043/0.3336, allocations: 0.5389 MB / 0.56 GB, free: 4.594 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00112/0.3347, allocations: 1.227 MB / 0.5612 GB, free: 3.363 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002019/0.3368, allocations: 1.898 MB / 0.563 GB, free: 1.457 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005595/0.3424, allocations: 5.59 MB / 0.5685 GB, free: 11.85 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.3424, allocations: 0 / 0.5685 GB, free: 11.85 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3424, allocations: 4 kB / 0.5685 GB, free: 11.85 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001126/0.3425, allocations: 0 / 0.5685 GB, free: 11.85 MB / 430.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.008079/0.3506, allocations: 3.841 MB / 0.5723 GB, free: 7.938 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.3507, allocations: 8.031 kB / 0.5723 GB, free: 7.93 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001082/0.3518, allocations: 404.5 kB / 0.5726 GB, free: 7.531 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003376/0.3552, allocations: 2.09 MB / 0.5747 GB, free: 5.387 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001428/0.3553, allocations: 214 kB / 0.5749 GB, free: 5.176 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004058/0.3557, allocations: 283.8 kB / 0.5752 GB, free: 4.898 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006602/0.3623, allocations: 3.735 MB / 0.5788 GB, free: 1.094 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.034e-05/0.3624, allocations: 15.84 kB / 0.5788 GB, free: 1.078 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002586/0.3627, allocations: 120 kB / 0.5789 GB, free: 0.9609 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001313/0.3629, allocations: 141.5 kB / 0.5791 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005296/0.3682, allocations: 3.182 MB / 0.5822 GB, free: 13.63 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.017/0.3852, allocations: 11.43 MB / 0.5933 GB, free: 1.891 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003807/0.389, allocations: 2.161 MB / 0.5955 GB, free: 15.62 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001914/0.3909, allocations: 1.222 MB / 0.5967 GB, free: 14.39 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003321/0.3913, allocations: 211.5 kB / 0.5969 GB, free: 14.14 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.443e-05/0.3913, allocations: 47.88 kB / 0.5969 GB, free: 14.09 MB / 462.1 MB Notification: Performance of pre-optimization done (n=139): time 3.246e-06/0.3914, allocations: 0 / 0.5969 GB, free: 14.09 MB / 462.1 MB Notification: Performance of matching and sorting (n=154): time 0.01708/0.4084, allocations: 7.87 MB / 0.6046 GB, free: 6.156 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.664e-05/0.4085, allocations: 72.72 kB / 0.6047 GB, free: 6.074 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003232/0.4118, allocations: 1.941 MB / 0.6066 GB, free: 4.09 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001618/0.4119, allocations: 49.7 kB / 0.6066 GB, free: 4.035 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009703/0.4129, allocations: 1.374 MB / 0.6079 GB, free: 2.645 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004728/0.4134, allocations: 0.5159 MB / 0.6084 GB, free: 2.121 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005827/0.414, allocations: 323.3 kB / 0.6088 GB, free: 1.797 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.236e-05/0.4141, allocations: 301.1 kB / 0.609 GB, free: 1.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001436/0.4155, allocations: 0.894 MB / 0.6099 GB, free: 0.6055 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001797/0.4173, allocations: 1.344 MB / 0.6112 GB, free: 15.07 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003491/0.4208, allocations: 2.389 MB / 0.6136 GB, free: 12.49 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.175e-05/0.4209, allocations: 4 kB / 0.6136 GB, free: 12.48 MB / 478.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005158/0.426, allocations: 2.94 MB / 0.6164 GB, free: 9.504 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.4261, allocations: 12 kB / 0.6164 GB, free: 9.492 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.004e-05/0.4261, allocations: 16 kB / 0.6165 GB, free: 9.477 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009013/0.427, allocations: 387.6 kB / 0.6168 GB, free: 9.086 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001693/0.4287, allocations: 447.2 kB / 0.6173 GB, free: 8.648 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006186/0.4349, allocations: 6.757 MB / 0.6239 GB, free: 1.477 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001626/0.4366, allocations: 135.7 kB / 0.624 GB, free: 1.344 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001704/0.4368, allocations: 68 kB / 0.624 GB, free: 1.277 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.001554/0.4383, allocations: 0.9027 MB / 0.6249 GB, free: 376 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005346/0.4389, allocations: 209.4 kB / 0.6251 GB, free: 164 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005268/0.4441, allocations: 2.915 MB / 0.628 GB, free: 13.22 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.53e-05/0.4442, allocations: 20.08 kB / 0.628 GB, free: 13.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.259e-05/0.4442, allocations: 7.938 kB / 0.628 GB, free: 13.19 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.152e-05/0.4442, allocations: 7.984 kB / 0.628 GB, free: 13.18 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01498/0.4592, allocations: 6.13 MB / 0.634 GB, free: 6.926 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.58e-05/0.4592, allocations: 4.469 kB / 0.634 GB, free: 6.922 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001541/0.4608, allocations: 243.6 kB / 0.6342 GB, free: 6.684 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003032/0.4638, allocations: 0.8075 MB / 0.635 GB, free: 5.867 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001491/0.464, allocations: 47.97 kB / 0.6351 GB, free: 5.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0143/0.4783, allocations: 10.75 MB / 0.6456 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.78e-06/0.4784, allocations: 4 kB / 0.6456 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00983/0.4882, allocations: 4.18 MB / 0.6497 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00137/0.4896, allocations: 486.4 kB / 0.6501 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000412/0.49, allocations: 35.98 kB / 0.6502 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001688/0.4917, allocations: 91.89 kB / 0.6502 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003704/0.4921, allocations: 125 kB / 0.6504 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001418/0.4923, allocations: 47.98 kB / 0.6504 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002178/0.4944, allocations: 1.341 MB / 0.6517 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.71e-07/0.4945, allocations: 0 / 0.6517 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001868/0.4963, allocations: 0.5703 MB / 0.6523 GB, free: 3.652 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.000424/0.4968, allocations: 201.1 kB / 0.6525 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00387/0.5006, allocations: 2.655 MB / 0.6551 GB, free: 0.7305 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.5007, allocations: 0 / 0.6551 GB, free: 0.7305 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002356/0.503, allocations: 1.627 MB / 0.6566 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00243/0.5055, allocations: 0.5444 MB / 0.6572 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008643/0.5141, allocations: 5.799 MB / 0.6628 GB, free: 8.66 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001835/0.516, allocations: 2.194 MB / 0.665 GB, free: 6.434 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005864/0.5166, allocations: 163.4 kB / 0.6651 GB, free: 6.273 MB / 0.5137 GB Notification: Performance of SimCode: time 4.61e-07/0.5166, allocations: 0 / 0.6651 GB, free: 6.273 MB / 0.5137 GB Notification: Performance of Templates: time 0.3006/0.8172, allocations: 85.55 MB / 0.7487 GB, free: 149.1 MB / 0.5606 GB 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/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_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches