Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000961/0.0009608, allocations: 196.3 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.272/1.272, allocations: 226.5 MB / 244.7 MB, free: 6.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007741/0.0007742, allocations: 87.58 kB / 296.7 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001972/0.0001972, allocations: 8 kB / 356.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1982/0.1984, allocations: 51.29 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.009699/0.2081, allocations: 7.966 MB / 416 MB, free: 19.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006295/0.2145, allocations: 3.011 MB / 419 MB, free: 16.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001286/0.2158, allocations: 39.81 kB / 419.1 MB, free: 16.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001762/0.2176, allocations: 0.5398 MB / 419.6 MB, free: 16.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002207/0.2198, allocations: 0.6138 MB / 420.2 MB, free: 15.5 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008678/0.2207, allocations: 203.7 kB / 420.4 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002621/0.2233, allocations: 2.207 MB / 422.6 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001778/0.2251, allocations: 1.196 MB / 423.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001212/0.2264, allocations: 0.7119 MB / 424.5 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001363/0.2278, allocations: 0.9495 MB / 425.5 MB, free: 10.17 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002411/0.228, allocations: 104 kB / 425.6 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006145/0.2286, allocations: 207.8 kB / 425.8 MB, free: 9.863 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006032/0.2293, allocations: 0.5218 MB / 426.3 MB, free: 9.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001/0.2303, allocations: 0.8998 MB / 427.2 MB, free: 8.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002344/0.2326, allocations: 2.501 MB / 429.7 MB, free: 5.922 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.2327, allocations: 0 / 429.7 MB, free: 5.922 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2327, allocations: 0 / 429.7 MB, free: 5.922 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.954e-05/0.2327, allocations: 3.938 kB / 429.7 MB, free: 5.918 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.004499/0.2372, allocations: 1.934 MB / 431.6 MB, free: 3.926 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.2373, allocations: 8.031 kB / 431.7 MB, free: 3.918 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009325/0.2382, allocations: 234.5 kB / 431.9 MB, free: 3.688 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002564/0.2408, allocations: 1.181 MB / 433.1 MB, free: 2.449 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/0.2409, allocations: 119.4 kB / 433.2 MB, free: 2.332 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000317/0.2413, allocations: 159.8 kB / 433.3 MB, free: 2.176 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004372/0.2457, allocations: 1.996 MB / 435.3 MB, free: 132 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.61e-05/0.2458, allocations: 4 kB / 435.3 MB, free: 128 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000208/0.246, allocations: 60 kB / 435.4 MB, free: 68 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001402/0.2461, allocations: 78.95 kB / 435.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004509/0.2507, allocations: 1.647 MB / 437.1 MB, free: 14.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01491/0.2656, allocations: 6.971 MB / 444.1 MB, free: 7.035 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/0.2668, allocations: 444.9 kB / 444.5 MB, free: 6.586 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006209/0.2675, allocations: 260.9 kB / 444.8 MB, free: 6.328 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003018/0.2678, allocations: 121.5 kB / 444.9 MB, free: 6.191 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.474e-05/0.2678, allocations: 39 kB / 444.9 MB, free: 6.145 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 3.346e-06/0.2679, allocations: 0 / 444.9 MB, free: 6.145 MB / 314.7 MB Notification: Performance of matching and sorting (n=63): time 0.01074/0.2786, allocations: 3.296 MB / 448.2 MB, free: 2.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003359/0.282, allocations: 2.174 MB / 450.4 MB, free: 436 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003352/0.2854, allocations: 1.604 MB / 452 MB, free: 14.81 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.321e-05/0.2855, allocations: 37.7 kB / 452.1 MB, free: 14.77 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001018/0.2865, allocations: 1.022 MB / 453.1 MB, free: 13.73 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002565/0.2868, allocations: 229 kB / 453.3 MB, free: 13.51 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.2869, allocations: 36.03 kB / 453.3 MB, free: 13.47 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.2871, allocations: 369.9 kB / 453.7 MB, free: 13.11 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001216/0.2883, allocations: 0.5114 MB / 454.2 MB, free: 12.59 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002135/0.2905, allocations: 1.457 MB / 455.7 MB, free: 10.67 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003539/0.294, allocations: 2.13 MB / 457.8 MB, free: 8.07 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.068e-05/0.294, allocations: 12 kB / 457.8 MB, free: 8.059 MB / 330.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.005293/0.2994, allocations: 2.142 MB / 459.9 MB, free: 5.898 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.172e-05/0.2994, allocations: 20.19 kB / 460 MB, free: 5.879 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-05/0.2995, allocations: 36 kB / 460 MB, free: 5.844 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008106/0.3003, allocations: 234.3 kB / 460.2 MB, free: 5.605 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001718/0.302, allocations: 391.3 kB / 460.6 MB, free: 5.223 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002136/0.3042, allocations: 1.707 MB / 462.3 MB, free: 3.379 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002029/0.3062, allocations: 143.4 kB / 462.5 MB, free: 3.238 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001785/0.3064, allocations: 99.92 kB / 462.6 MB, free: 3.141 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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 (204): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001307/0.3077, allocations: 0.5905 MB / 463.1 MB, free: 2.539 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000368/0.3081, allocations: 158 kB / 463.3 MB, free: 2.383 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002884/0.311, allocations: 1.106 MB / 464.4 MB, free: 1.258 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.398e-05/0.3111, allocations: 11.94 kB / 464.4 MB, free: 1.246 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3111, allocations: 0 / 464.4 MB, free: 1.246 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.239e-05/0.3111, allocations: 4.219 kB / 464.4 MB, free: 1.242 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00812/0.3192, allocations: 3.383 MB / 467.8 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.317e-05/0.3193, allocations: 4.094 kB / 467.8 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000691/0.32, allocations: 115.8 kB / 467.9 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001004/0.321, allocations: 234.2 kB / 468.1 MB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.451e-05/0.3211, allocations: 19.98 kB / 468.2 MB, free: 13.33 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005507/0.3266, allocations: 3.694 MB / 471.9 MB, free: 9.363 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003046/0.3297, allocations: 2.014 MB / 473.9 MB, free: 7.203 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004107/0.3339, allocations: 1.734 MB / 475.6 MB, free: 5.375 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009511/0.3348, allocations: 315 kB / 475.9 MB, free: 5.047 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000273/0.3351, allocations: 20 kB / 475.9 MB, free: 5.027 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/0.3363, allocations: 55.88 kB / 476 MB, free: 4.973 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001998/0.3365, allocations: 67.86 kB / 476.1 MB, free: 4.906 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.578e-05/0.3366, allocations: 20 kB / 476.1 MB, free: 4.887 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002577/0.3392, allocations: 1.059 MB / 477.1 MB, free: 3.832 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3392, allocations: 0 / 477.1 MB, free: 3.832 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002765/0.342, allocations: 380 kB / 477.5 MB, free: 3.461 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 1 ($STATESET1.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 (57): * Single equations (assignments): 54 * 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: 2 * 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: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004557/0.3424, allocations: 178.9 kB / 477.7 MB, free: 3.277 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003931/0.3464, allocations: 1.593 MB / 479.3 MB, free: 1.633 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/0.3464, allocations: 0 / 479.3 MB, free: 1.633 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001928/0.3484, allocations: 0.8244 MB / 480.1 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00453/0.3529, allocations: 391.2 kB / 480.5 MB, free: 400 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007947/0.3609, allocations: 3.748 MB / 484.2 MB, free: 12.53 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001692/0.3626, allocations: 1.457 MB / 485.7 MB, free: 11.04 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006091/0.3633, allocations: 127.3 kB / 485.8 MB, free: 10.91 MB / 362.7 MB Notification: Performance of SimCode: time 7.42e-07/0.3633, allocations: 0 / 485.8 MB, free: 10.91 MB / 362.7 MB Notification: Performance of Templates: time 0.2539/0.6172, allocations: 46.95 MB / 0.5203 GB, free: 80.89 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches