Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009006/0.0009007, allocations: 194 kB / 17.38 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.172/1.172, allocations: 226.5 MB / 244.7 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007563/0.0007563, allocations: 91.47 kB / 296.7 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002018/0.0002019, allocations: 7.938 kB / 356.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1658/0.166, 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_CurrentSource): time 0.006616/0.1727, allocations: 9.653 MB / 417.8 MB, free: 18.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00361/0.1763, allocations: 3.451 MB / 421.2 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005582/0.1769, allocations: 63.69 kB / 421.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000983/0.1779, allocations: 0.6562 MB / 422 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001125/0.179, allocations: 0.738 MB / 422.7 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004773/0.1795, allocations: 299.5 kB / 423 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001669/0.1812, allocations: 3.005 MB / 426 MB, free: 9.789 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001721/0.1829, allocations: 2.291 MB / 428.3 MB, free: 7.434 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007578/0.1837, allocations: 1.015 MB / 429.3 MB, free: 6.414 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001039/0.1847, allocations: 1.409 MB / 430.7 MB, free: 5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002199/0.185, allocations: 152 kB / 430.9 MB, free: 4.852 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004709/0.1855, allocations: 263.8 kB / 431.1 MB, free: 4.594 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005249/0.186, allocations: 0.8022 MB / 431.9 MB, free: 3.789 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007812/0.1868, allocations: 1.335 MB / 433.2 MB, free: 2.441 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002203/0.189, allocations: 3.919 MB / 437.2 MB, free: 14.51 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.189, allocations: 4 kB / 437.2 MB, free: 14.51 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.189, allocations: 0 / 437.2 MB, free: 14.51 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.518e-05/0.1891, allocations: 7.938 kB / 437.2 MB, free: 14.5 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.004404/0.1935, allocations: 2.853 MB / 440 MB, free: 11.58 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.1935, allocations: 12.03 kB / 440 MB, free: 11.57 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003891/0.1939, allocations: 363 kB / 440.4 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007128/0.1946, allocations: 349 kB / 440.7 MB, free: 10.86 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002324/0.197, allocations: 1.772 MB / 442.5 MB, free: 9.035 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001486/0.1971, allocations: 205.1 kB / 442.7 MB, free: 8.832 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002953/0.1974, allocations: 243.9 kB / 442.9 MB, free: 8.594 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004526/0.202, allocations: 3.268 MB / 446.2 MB, free: 5.246 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.556e-05/0.202, allocations: 7.906 kB / 446.2 MB, free: 5.238 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002038/0.2022, allocations: 104 kB / 446.3 MB, free: 5.137 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001117/0.2024, allocations: 128.9 kB / 446.5 MB, free: 5.008 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003898/0.2063, allocations: 2.74 MB / 449.2 MB, free: 2.254 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01244/0.2187, allocations: 10.52 MB / 459.7 MB, free: 7.363 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001605/0.2203, allocations: 1.354 MB / 461.1 MB, free: 5.945 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001119/0.2215, allocations: 0.7958 MB / 461.9 MB, free: 5.148 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002504/0.2217, allocations: 203.2 kB / 462.1 MB, free: 4.91 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.361e-05/0.2218, allocations: 43.56 kB / 462.1 MB, free: 4.859 MB / 330.7 MB Notification: Performance of pre-optimization done (n=98): time 2.515e-06/0.2218, allocations: 0 / 462.1 MB, free: 4.859 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.01296/0.2347, allocations: 6.948 MB / 469 MB, free: 13.8 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.564e-05/0.2348, allocations: 64.41 kB / 469.1 MB, free: 13.72 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002016/0.2368, allocations: 1.782 MB / 470.9 MB, free: 11.94 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.118e-05/0.2369, allocations: 45.7 kB / 470.9 MB, free: 11.89 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007129/0.2376, allocations: 1.271 MB / 472.2 MB, free: 10.6 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002674/0.2379, allocations: 425.9 kB / 472.6 MB, free: 10.18 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.409e-05/0.238, allocations: 32 kB / 472.7 MB, free: 10.14 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.2381, allocations: 373.8 kB / 473 MB, free: 9.773 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001037/0.2391, allocations: 0.7691 MB / 473.8 MB, free: 9.004 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001307/0.2405, allocations: 1.292 MB / 475.1 MB, free: 7.484 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002475/0.2429, allocations: 2.198 MB / 477.3 MB, free: 5.059 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.243, allocations: 8 kB / 477.3 MB, free: 5.051 MB / 346.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003343/0.2463, allocations: 2.47 MB / 479.8 MB, free: 2.559 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.2463, allocations: 12 kB / 479.8 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.699e-05/0.2464, allocations: 16 kB / 479.8 MB, free: 2.523 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005485/0.2469, allocations: 239.6 kB / 480 MB, free: 2.277 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/0.2483, allocations: 415.3 kB / 480.4 MB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002126/0.2504, allocations: 3.005 MB / 483.4 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.2515, allocations: 127.8 kB / 483.6 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/0.2516, allocations: 68 kB / 483.6 MB, free: 14.4 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001082/0.2527, allocations: 0.8213 MB / 484.4 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002344/0.2529, allocations: 197.6 kB / 484.6 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002954/0.2559, allocations: 2.035 MB / 486.7 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.2559, allocations: 12.14 kB / 486.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.2559, allocations: 0 / 486.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.391e-05/0.256, allocations: 11.95 kB / 486.7 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006371/0.2623, allocations: 4.763 MB / 491.5 MB, free: 6.434 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.63e-06/0.2623, allocations: 4 kB / 491.5 MB, free: 6.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.2634, allocations: 263.6 kB / 491.7 MB, free: 6.172 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004782/0.2638, allocations: 203.5 kB / 491.9 MB, free: 5.961 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.051e-05/0.2639, allocations: 24 kB / 491.9 MB, free: 5.938 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002031/0.266, allocations: 2.979 MB / 494.9 MB, free: 2.691 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.266, allocations: 3.938 kB / 494.9 MB, free: 2.688 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003875/0.2699, allocations: 3.129 MB / 498.1 MB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005847/0.2705, allocations: 434.6 kB / 498.5 MB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001903/0.2707, allocations: 35.88 kB / 498.5 MB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008693/0.2715, allocations: 95.88 kB / 498.6 MB, free: 14.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002142/0.2718, allocations: 80.95 kB / 498.7 MB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.347e-05/0.2718, allocations: 35.98 kB / 498.7 MB, free: 14.81 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001468/0.2733, allocations: 1.208 MB / 499.9 MB, free: 13.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2733, allocations: 0 / 499.9 MB, free: 13.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00117/0.2745, allocations: 492 kB / 0.4887 GB, free: 13.13 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (121): * Single equations (assignments): 117 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004302/0.2788, allocations: 3.768 MB / 0.4924 GB, free: 9.293 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002959/0.2818, allocations: 2.341 MB / 0.4946 GB, free: 6.887 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2818, allocations: 2 kB / 0.4946 GB, free: 6.887 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001599/0.2834, allocations: 1.339 MB / 0.496 GB, free: 5.477 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002365/0.2858, allocations: 470.6 kB / 0.4964 GB, free: 5.023 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1535/0.4393, allocations: 15.37 MB / 0.5114 GB, free: 87.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00114/0.4405, allocations: 1.973 MB / 0.5133 GB, free: 86.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00103/0.4415, allocations: 1.027 MB / 0.5143 GB, free: 86.04 MB / 378.7 MB Notification: Performance of SimCode: time 5.11e-07/0.4415, allocations: 0 / 0.5143 GB, free: 86.04 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.013/6.455, allocations: 89.42 MB / 0.6017 GB, free: 14.32 MB / 394.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches