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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.004408/0.004408, allocations: 166.4 kB / 24.7 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8788/0.8788, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.795e-06/2.795e-06, allocations: 3.984 kB / 298.4 MB, free: 3.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.32e-05/2.6e-05, allocations: 2.281 kB / 298.4 MB, free: 3.512 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.1892/0.1892, allocations: 7.21 MB / 305.7 MB, free: 12.02 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002588/0.1918, allocations: 2.558 MB / 308.2 MB, free: 10.49 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003197/0.1921, allocations: 27.75 kB / 308.2 MB, free: 10.48 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009198/0.1931, allocations: 0.5318 MB / 308.8 MB, free: 10.22 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006161/0.1937, allocations: 0.5274 MB / 309.3 MB, free: 9.832 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003442/0.194, allocations: 260.5 kB / 309.6 MB, free: 9.668 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001024/0.195, allocations: 1.571 MB / 311.1 MB, free: 8.789 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004578/0.1955, allocations: 372 kB / 311.5 MB, free: 8.582 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007622/0.1963, allocations: 0.8723 MB / 312.4 MB, free: 8.172 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004588/0.1967, allocations: 447.2 kB / 312.8 MB, free: 8.016 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001374/0.1969, allocations: 139.1 kB / 312.9 MB, free: 8.016 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002516/0.1971, allocations: 182.2 kB / 313.1 MB, free: 8.004 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.1972, allocations: 288.5 kB / 313.4 MB, free: 7.789 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003512/0.1976, allocations: 475.2 kB / 313.9 MB, free: 7.57 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001471/0.1991, allocations: 1.755 MB / 315.6 MB, free: 6.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.1991, allocations: 7.938 kB / 315.6 MB, free: 6.922 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1991, allocations: 1.375 kB / 315.6 MB, free: 6.922 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.334e-05/0.1991, allocations: 1.031 kB / 315.6 MB, free: 6.922 MB / 282.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.00169/0.2008, allocations: 1.42 MB / 317 MB, free: 5.988 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.302e-05/0.2008, allocations: 13.89 kB / 317.1 MB, free: 5.984 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001656/0.201, allocations: 153.6 kB / 317.2 MB, free: 5.883 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004477/0.2014, allocations: 200.1 kB / 317.4 MB, free: 5.805 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009898/0.2024, allocations: 0.6877 MB / 318.1 MB, free: 5.336 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.062e-05/0.2025, allocations: 72.75 kB / 318.2 MB, free: 5.305 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.2026, allocations: 105.2 kB / 318.3 MB, free: 5.266 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/0.2037, allocations: 1.042 MB / 319.3 MB, free: 4.711 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.698e-05/0.2037, allocations: 6.516 kB / 319.3 MB, free: 4.707 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.97e-05/0.2038, allocations: 41.06 kB / 319.4 MB, free: 4.676 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.971e-05/0.2038, allocations: 26 kB / 319.4 MB, free: 4.676 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008364/0.2046, allocations: 0.6453 MB / 320 MB, free: 4.441 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002868/0.2075, allocations: 3.523 MB / 323.5 MB, free: 1.613 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004429/0.208, allocations: 353.6 kB / 323.9 MB, free: 1.418 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003763/0.2083, allocations: 257.1 kB / 324.1 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.838e-05/0.2084, allocations: 4.625 kB / 324.1 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.785e-05/0.2084, allocations: 36.91 kB / 324.2 MB, free: 1.258 MB / 282.7 MB Notification: Performance of pre-optimization done (n=41): time 1.783e-06/0.2084, allocations: 0 / 324.2 MB, free: 1.258 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.001941/0.2103, allocations: 1.332 MB / 325.5 MB, free: 444 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.588e-05/0.2104, allocations: 90.55 kB / 325.6 MB, free: 340 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008315/0.2112, allocations: 0.853 MB / 326.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.2112, allocations: 32.36 kB / 326.5 MB, free: 15.81 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003954/0.2116, allocations: 0.5817 MB / 327.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.2117, allocations: 162.6 kB / 327.2 MB, free: 15.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001464/0.2119, allocations: 132.1 kB / 327.4 MB, free: 15.06 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.212, allocations: 332.8 kB / 327.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002581/0.2122, allocations: 176.2 kB / 327.9 MB, free: 14.65 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004094/0.2126, allocations: 0.4933 MB / 328.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006874/0.2133, allocations: 0.6722 MB / 329 MB, free: 13.56 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.2133, allocations: 2.375 kB / 329 MB, free: 13.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001005/0.2143, allocations: 0.7922 MB / 329.8 MB, free: 13.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.2144, allocations: 9.219 kB / 329.8 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.2144, allocations: 21.48 kB / 329.8 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002452/0.2146, allocations: 80.12 kB / 329.9 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000299/0.2149, allocations: 161.9 kB / 330.1 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001986/0.2169, allocations: 2.925 MB / 333 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003344/0.2172, allocations: 30.92 kB / 333 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.942e-05/0.2173, allocations: 42.16 kB / 333.1 MB, free: 10.12 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 (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.0002966/0.2176, allocations: 258.8 kB / 333.3 MB, free: 9.914 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.2177, allocations: 101.5 kB / 333.4 MB, free: 9.859 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006922/0.2184, allocations: 0.4949 MB / 333.9 MB, free: 9.559 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.2184, allocations: 8.812 kB / 333.9 MB, free: 9.555 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.2184, allocations: 1.969 kB / 333.9 MB, free: 9.555 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.2184, allocations: 3.984 kB / 333.9 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001633/0.22, allocations: 1.342 MB / 335.3 MB, free: 8.586 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.22, allocations: 1.125 kB / 335.3 MB, free: 8.586 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001835/0.2202, allocations: 73.53 kB / 335.4 MB, free: 8.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001431/0.2204, allocations: 76.02 kB / 335.4 MB, free: 8.523 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.212e-05/0.2204, allocations: 8.375 kB / 335.4 MB, free: 8.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001667/0.222, allocations: 2.914 MB / 338.3 MB, free: 5.629 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.222, allocations: 2.75 kB / 338.4 MB, free: 5.629 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008048/0.2229, allocations: 0.8084 MB / 339.2 MB, free: 4.781 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000181/0.223, allocations: 123.4 kB / 339.3 MB, free: 4.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.9e-05/0.2231, allocations: 12 kB / 339.3 MB, free: 4.648 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000259/0.2234, allocations: 27.97 kB / 339.3 MB, free: 4.621 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.748e-05/0.2234, allocations: 43.88 kB / 339.4 MB, free: 4.578 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.566e-05/0.2234, allocations: 12 kB / 339.4 MB, free: 4.566 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004938/0.2239, allocations: 0.5771 MB / 339.9 MB, free: 3.992 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2239, allocations: 0 / 339.9 MB, free: 3.992 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005915/0.2245, allocations: 215.9 kB / 340.2 MB, free: 3.781 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 (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.001607/0.2261, allocations: 1.35 MB / 341.5 MB, free: 2.375 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008092/0.2269, allocations: 0.6937 MB / 342.2 MB, free: 1.656 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2269, allocations: 0 / 342.2 MB, free: 1.656 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004176/0.2274, allocations: 449.8 kB / 342.6 MB, free: 1.191 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006948/0.2281, allocations: 231.6 kB / 342.9 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007748/0.2358, allocations: 7.414 MB / 350.3 MB, free: 9.113 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.2361, allocations: 434.6 kB / 350.7 MB, free: 8.66 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002792/0.2364, allocations: 111.2 kB / 350.8 MB, free: 8.547 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003101/0.2367, allocations: 388.4 kB / 351.2 MB, free: 8.168 MB / 314.7 MB Notification: Performance of SimCode: time 1.062e-06/0.2367, allocations: 3.938 kB / 351.2 MB, free: 8.164 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03446/0.2711, allocations: 21.32 MB / 372.5 MB, free: 2.77 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.761/8.032, allocations: 8 kB / 372.5 MB, free: 2.762 MB / 330.7 MB " [Timeout remaining time 652] (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 --stepSize=0.0001 --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) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/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/jenkins/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) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 10.561240046285093]