Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009624/0.0009624, allocations: 104.5 kB / 17.58 MB, free: 5.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009778/0.0009779, allocations: 191.9 kB / 18.51 MB, free: 4.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.286/1.286, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 51.92 kB / 280.8 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07776/0.07892, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009227/0.08818, allocations: 8.18 MB / 335.6 MB, free: 12.15 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003986/0.0922, allocations: 2.724 MB / 338.3 MB, free: 9.414 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004674/0.09271, allocations: 23.94 kB / 338.3 MB, free: 9.391 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001205/0.09392, allocations: 0.5519 MB / 338.9 MB, free: 8.836 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008469/0.09478, allocations: 476.2 kB / 339.3 MB, free: 8.367 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004331/0.09522, allocations: 275.6 kB / 339.6 MB, free: 8.098 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00129/0.09652, allocations: 1.49 MB / 341.1 MB, free: 6.602 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007069/0.09724, allocations: 0.5808 MB / 341.7 MB, free: 6 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005963/0.09784, allocations: 0.5564 MB / 342.2 MB, free: 5.441 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005879/0.09844, allocations: 0.6183 MB / 342.8 MB, free: 4.82 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001636/0.09861, allocations: 140 kB / 343 MB, free: 4.684 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003143/0.09893, allocations: 180 kB / 343.2 MB, free: 4.508 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001914/0.09913, allocations: 283 kB / 343.4 MB, free: 4.23 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000539/0.09968, allocations: 0.6765 MB / 344.1 MB, free: 3.551 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00138/0.1011, allocations: 1.732 MB / 345.8 MB, free: 1.812 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1011, allocations: 0 / 345.8 MB, free: 1.812 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1011, allocations: 0 / 345.8 MB, free: 1.812 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.282e-05/0.1011, allocations: 0 / 345.8 MB, free: 1.812 MB / 286.1 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.002197/0.1033, allocations: 1.48 MB / 347.3 MB, free: 284 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.1034, allocations: 12.03 kB / 347.3 MB, free: 272 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001574/0.1035, allocations: 152.4 kB / 347.5 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006492/0.1042, allocations: 191.3 kB / 347.7 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/0.1052, allocations: 0.7462 MB / 348.4 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.834e-05/0.1053, allocations: 70 kB / 348.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.1054, allocations: 99.91 kB / 348.6 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/0.1069, allocations: 0.9542 MB / 349.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.787e-05/0.1069, allocations: 0 / 349.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.57e-05/0.107, allocations: 40 kB / 349.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.914e-05/0.107, allocations: 31.94 kB / 349.6 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001212/0.1082, allocations: 0.6481 MB / 350.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004792/0.113, allocations: 3.961 MB / 354.2 MB, free: 9.074 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006634/0.1137, allocations: 435.9 kB / 354.6 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005657/0.1143, allocations: 276.5 kB / 354.9 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.202e-05/0.1143, allocations: 11.94 kB / 354.9 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.737e-05/0.1144, allocations: 38.56 kB / 355 MB, free: 8.289 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.663e-06/0.1144, allocations: 0 / 355 MB, free: 8.289 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002821/0.1172, allocations: 1.532 MB / 356.5 MB, free: 6.664 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.687e-05/0.1173, allocations: 85.09 kB / 356.6 MB, free: 6.562 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009855/0.1183, allocations: 0.8371 MB / 357.4 MB, free: 5.719 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.186e-05/0.1183, allocations: 37.7 kB / 357.5 MB, free: 5.676 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003907/0.1187, allocations: 0.5681 MB / 358 MB, free: 5.098 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/0.1188, allocations: 157.7 kB / 358.2 MB, free: 4.941 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001688/0.119, allocations: 138.4 kB / 358.3 MB, free: 4.797 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.1191, allocations: 337.9 kB / 358.6 MB, free: 4.461 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000346/0.1195, allocations: 169.9 kB / 358.8 MB, free: 4.297 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005624/0.1201, allocations: 475.6 kB / 359.3 MB, free: 3.695 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009223/0.121, allocations: 0.6797 MB / 359.9 MB, free: 2.883 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.121, allocations: 0 / 359.9 MB, free: 2.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001308/0.1223, allocations: 0.7826 MB / 360.7 MB, free: 2.086 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.1223, allocations: 8 kB / 360.7 MB, free: 2.078 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.1224, allocations: 8 kB / 360.7 MB, free: 2.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002633/0.1226, allocations: 93.81 kB / 360.8 MB, free: 1.973 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004857/0.1231, allocations: 159.7 kB / 361 MB, free: 1.816 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002276/0.1254, allocations: 3.146 MB / 364.1 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005166/0.126, allocations: 43.83 kB / 364.2 MB, free: 14.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.175e-05/0.126, allocations: 39.98 kB / 364.2 MB, free: 14.31 MB / 318.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003381/0.1263, allocations: 265.5 kB / 364.5 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.1265, allocations: 86.97 kB / 364.6 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009212/0.1274, allocations: 0.4951 MB / 365.1 MB, free: 13.45 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.1274, allocations: 8 kB / 365.1 MB, free: 13.44 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.1274, allocations: 0 / 365.1 MB, free: 13.44 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.1274, allocations: 3.984 kB / 365.1 MB, free: 13.44 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002018/0.1295, allocations: 1.488 MB / 366.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.1295, allocations: 4.219 kB / 366.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003184/0.1298, allocations: 75.89 kB / 366.6 MB, free: 11.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000183/0.13, allocations: 73.67 kB / 366.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.673e-05/0.13, allocations: 8 kB / 366.7 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002128/0.1322, allocations: 3.11 MB / 369.8 MB, free: 8.309 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.1322, allocations: 4.156 kB / 369.8 MB, free: 8.305 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001229/0.1334, allocations: 0.8049 MB / 370.6 MB, free: 7.453 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002385/0.1337, allocations: 196 kB / 370.8 MB, free: 7.242 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.1338, allocations: 19.94 kB / 370.8 MB, free: 7.223 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000432/0.1342, allocations: 31.97 kB / 370.9 MB, free: 7.191 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.547e-05/0.1343, allocations: 36.03 kB / 370.9 MB, free: 7.156 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.339e-05/0.1343, allocations: 12 kB / 370.9 MB, free: 7.145 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006972/0.135, allocations: 0.5732 MB / 371.5 MB, free: 6.574 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1351, allocations: 0 / 371.5 MB, free: 6.574 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007594/0.1358, allocations: 204 kB / 371.7 MB, free: 6.375 MB / 318.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001567/0.1374, allocations: 1.365 MB / 373.1 MB, free: 4.949 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001212/0.1386, allocations: 0.7164 MB / 373.8 MB, free: 4.207 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1386, allocations: 5.75 kB / 373.8 MB, free: 4.203 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006378/0.1393, allocations: 457.6 kB / 374.2 MB, free: 3.73 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/0.1404, allocations: 235.1 kB / 374.5 MB, free: 3.504 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.156/0.2964, allocations: 7.989 MB / 382.5 MB, free: 50.36 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005924/0.297, allocations: 1.008 MB / 383.5 MB, free: 49.66 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004985/0.2975, allocations: 110.2 kB / 383.6 MB, free: 49.65 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003779/0.2979, allocations: 391.2 kB / 383.9 MB, free: 49.35 MB / 318.1 MB Notification: Performance of SimCode: time 7.31e-07/0.2979, allocations: 0 / 383.9 MB, free: 49.35 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06736/0.3653, allocations: 19.06 MB / 403 MB, free: 39.03 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.921/10.29, allocations: 15.42 kB / 403 MB, free: 39.01 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches