Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001206/0.001205, allocations: 175 kB / 16.72 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.172/1.172, allocations: 205.4 MB / 222.9 MB, free: 8.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006713/0.0006713, allocations: 94.34 kB / 271.2 MB, free: 8.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002798/0.0002798, allocations: 8 kB / 327.6 MB, free: 15.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1861/0.1864, allocations: 47.57 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.005631/0.1921, allocations: 7.206 MB / 382.4 MB, free: 39.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003414/0.1955, allocations: 2.561 MB / 385 MB, free: 37.63 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005287/0.1961, allocations: 23.25 kB / 385 MB, free: 37.63 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001005/0.1971, allocations: 475.1 kB / 385.4 MB, free: 37.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008083/0.1979, allocations: 401.3 kB / 385.8 MB, free: 36.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003414/0.1983, allocations: 155.9 kB / 386 MB, free: 36.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001234/0.1995, allocations: 1.383 MB / 387.4 MB, free: 35.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006123/0.2001, allocations: 0.4956 MB / 387.9 MB, free: 35.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004742/0.2006, allocations: 465.4 kB / 388.3 MB, free: 35.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003966/0.201, allocations: 0.5094 MB / 388.8 MB, free: 35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.208e-05/0.2011, allocations: 64 kB / 388.9 MB, free: 34.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002463/0.2014, allocations: 104 kB / 389 MB, free: 34.83 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001063/0.2015, allocations: 203 kB / 389.2 MB, free: 34.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003484/0.2018, allocations: 0.5887 MB / 389.8 MB, free: 34.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007207/0.2026, allocations: 1.359 MB / 391.1 MB, free: 32.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2026, allocations: 0 / 391.1 MB, free: 32.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2026, allocations: 4 kB / 391.1 MB, free: 32.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.033e-05/0.2026, allocations: 0 / 391.1 MB, free: 32.67 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.001579/0.2042, allocations: 1.285 MB / 392.4 MB, free: 31.33 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.2042, allocations: 8.031 kB / 392.4 MB, free: 31.32 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001248/0.2044, allocations: 152.4 kB / 392.6 MB, free: 31.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005243/0.2049, allocations: 195.3 kB / 392.8 MB, free: 30.97 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008052/0.2057, allocations: 0.7469 MB / 393.5 MB, free: 30.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.499e-05/0.2057, allocations: 74 kB / 393.6 MB, free: 30.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.494e-05/0.2058, allocations: 103.9 kB / 393.7 MB, free: 30.01 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001251/0.2071, allocations: 0.9463 MB / 394.6 MB, free: 29.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.835e-05/0.2071, allocations: 4 kB / 394.7 MB, free: 29.03 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.423e-05/0.2072, allocations: 44 kB / 394.7 MB, free: 28.99 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.511e-05/0.2072, allocations: 27.98 kB / 394.7 MB, free: 28.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.2083, allocations: 0.652 MB / 395.4 MB, free: 28.31 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003723/0.212, allocations: 3.988 MB / 399.4 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005407/0.2126, allocations: 452.5 kB / 399.8 MB, free: 23.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004781/0.2131, allocations: 269.4 kB / 400.1 MB, free: 23.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-05/0.2131, allocations: 8 kB / 400.1 MB, free: 23.35 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/0.2131, allocations: 42.44 kB / 400.1 MB, free: 23.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 2.074e-06/0.2131, allocations: 0 / 400.1 MB, free: 23.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002337/0.2155, allocations: 1.58 MB / 401.7 MB, free: 21.63 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.722e-05/0.2155, allocations: 85.05 kB / 401.8 MB, free: 21.53 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007702/0.2163, allocations: 0.8332 MB / 402.6 MB, free: 20.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.2163, allocations: 33.7 kB / 402.6 MB, free: 20.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002237/0.2166, allocations: 0.5643 MB / 403.2 MB, free: 20.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.945e-05/0.2166, allocations: 165.6 kB / 403.4 MB, free: 19.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.355e-05/0.2167, allocations: 16 kB / 403.4 MB, free: 19.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.825e-05/0.2167, allocations: 333.9 kB / 403.7 MB, free: 19.56 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002959/0.217, allocations: 181.9 kB / 403.9 MB, free: 19.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003692/0.2174, allocations: 471.6 kB / 404.4 MB, free: 18.79 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006922/0.2181, allocations: 0.6953 MB / 405 MB, free: 17.96 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.2181, allocations: 4 kB / 405.1 MB, free: 17.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00104/0.2192, allocations: 0.7943 MB / 405.8 MB, free: 17.14 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.2192, allocations: 11.94 kB / 405.9 MB, free: 17.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.2192, allocations: 12 kB / 405.9 MB, free: 17.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000223/0.2194, allocations: 81.88 kB / 405.9 MB, free: 17.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004339/0.2199, allocations: 163.7 kB / 406.1 MB, free: 16.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001421/0.2213, allocations: 2.872 MB / 409 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004623/0.2218, allocations: 43.89 kB / 409 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.535e-05/0.2218, allocations: 36 kB / 409.1 MB, free: 13.66 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002807/0.2221, allocations: 262.5 kB / 409.3 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.62e-05/0.2222, allocations: 82.97 kB / 409.4 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007854/0.223, allocations: 0.5186 MB / 409.9 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.223, allocations: 4 kB / 409.9 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.223, allocations: 0 / 409.9 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.223, allocations: 4 kB / 409.9 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001618/0.2247, allocations: 1.495 MB / 411.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.2247, allocations: 0 / 411.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002852/0.225, allocations: 79.89 kB / 411.5 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001559/0.2251, allocations: 73.61 kB / 411.6 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.322e-05/0.2252, allocations: 16.03 kB / 411.6 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001314/0.2265, allocations: 2.86 MB / 414.4 MB, free: 7.895 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.2265, allocations: 0 / 414.4 MB, free: 7.895 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001014/0.2275, allocations: 0.8128 MB / 415.3 MB, free: 7.031 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001828/0.2277, allocations: 196 kB / 415.4 MB, free: 6.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.412e-05/0.2278, allocations: 15.98 kB / 415.5 MB, free: 6.805 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003928/0.2282, allocations: 39.92 kB / 415.5 MB, free: 6.766 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.162e-05/0.2283, allocations: 31.95 kB / 415.5 MB, free: 6.734 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-05/0.2283, allocations: 12 kB / 415.5 MB, free: 6.723 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005468/0.2289, allocations: 0.5732 MB / 416.1 MB, free: 6.152 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2289, allocations: 3.938 kB / 416.1 MB, free: 6.148 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006523/0.2295, allocations: 208 kB / 416.3 MB, free: 5.945 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (39): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001225/0.2308, allocations: 1.38 MB / 417.7 MB, free: 4.508 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009342/0.2317, allocations: 0.706 MB / 418.4 MB, free: 3.777 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.2317, allocations: 8.5 kB / 418.4 MB, free: 3.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005054/0.2322, allocations: 461 kB / 418.9 MB, free: 3.293 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001111/0.2334, allocations: 207.8 kB / 419.1 MB, free: 3.098 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007277/0.2406, allocations: 5.417 MB / 424.5 MB, free: 13.37 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005112/0.2412, allocations: 1.009 MB / 425.5 MB, free: 12.33 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004565/0.2416, allocations: 399.3 kB / 425.9 MB, free: 11.94 MB / 314.7 MB Notification: Performance of SimCode: time 8.82e-07/0.2416, allocations: 0 / 425.9 MB, free: 11.94 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.81/4.052, allocations: 23.96 MB / 449.9 MB, free: 3.938 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches