Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001626/0.001637, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002226/0.002226, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 59.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2985, allocations: 50.54 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009425/0.3079, allocations: 8.239 MB / 417 MB, free: 9.273 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004895/0.3128, allocations: 2.754 MB / 419.7 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001261/0.3141, allocations: 23.94 kB / 419.8 MB, free: 6.488 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001795/0.316, allocations: 0.5597 MB / 420.3 MB, free: 5.926 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001637/0.3176, allocations: 483.8 kB / 420.8 MB, free: 5.453 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008113/0.3185, allocations: 267.6 kB / 421.1 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002073/0.3206, allocations: 1.51 MB / 422.6 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000922/0.3215, allocations: 0.5769 MB / 423.2 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009367/0.3224, allocations: 0.5797 MB / 423.7 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006966/0.3232, allocations: 0.6105 MB / 424.3 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001554/0.3233, allocations: 140 kB / 424.5 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003362/0.3237, allocations: 184 kB / 424.7 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001994/0.3239, allocations: 290.9 kB / 424.9 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005388/0.3244, allocations: 0.6726 MB / 425.6 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00159/0.326, allocations: 1.76 MB / 427.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.326, allocations: 7.938 kB / 427.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.326, allocations: 0 / 427.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.955e-05/0.3261, allocations: 3.938 kB / 427.4 MB, free: 14.82 MB / 350.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.002404/0.3285, allocations: 1.476 MB / 428.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.3285, allocations: 8.031 kB / 428.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001608/0.3287, allocations: 152.4 kB / 429 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006811/0.3294, allocations: 199.3 kB / 429.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/0.3306, allocations: 0.7656 MB / 430 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.814e-05/0.3307, allocations: 74 kB / 430.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001303/0.3308, allocations: 99.91 kB / 430.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001484/0.3323, allocations: 0.9425 MB / 431.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.167e-05/0.3323, allocations: 7.984 kB / 431.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.199e-05/0.3324, allocations: 40 kB / 431.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.975e-05/0.3324, allocations: 24 kB / 431.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001167/0.3336, allocations: 0.6519 MB / 431.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004892/0.3385, allocations: 3.906 MB / 435.7 MB, free: 6.133 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006679/0.3392, allocations: 455.6 kB / 436.2 MB, free: 5.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005966/0.3398, allocations: 284.6 kB / 436.4 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.272e-05/0.3399, allocations: 4 kB / 436.4 MB, free: 5.375 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.3399, allocations: 38.56 kB / 436.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.074e-06/0.3399, allocations: 0 / 436.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.002774/0.3427, allocations: 1.543 MB / 438 MB, free: 3.691 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.936e-05/0.3427, allocations: 89.05 kB / 438.1 MB, free: 3.586 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009825/0.3437, allocations: 0.8449 MB / 439 MB, free: 2.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.936e-05/0.3438, allocations: 33.7 kB / 439 MB, free: 2.691 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003537/0.3441, allocations: 0.5643 MB / 439.6 MB, free: 2.117 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.706e-05/0.3442, allocations: 157.7 kB / 439.7 MB, free: 1.961 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001694/0.3444, allocations: 134.5 kB / 439.8 MB, free: 1.824 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.3446, allocations: 337.9 kB / 440.2 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003386/0.3449, allocations: 169.9 kB / 440.3 MB, free: 1.324 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005145/0.3454, allocations: 475.6 kB / 440.8 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008872/0.3463, allocations: 0.6801 MB / 441.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3463, allocations: 0 / 441.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001319/0.3477, allocations: 0.7865 MB / 442.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.52e-05/0.3477, allocations: 10.97 kB / 442.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.3477, allocations: 12 kB / 442.3 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002484/0.348, allocations: 89.81 kB / 442.4 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004862/0.3485, allocations: 155.7 kB / 442.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002178/0.3507, allocations: 3.142 MB / 445.7 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005488/0.3512, allocations: 40.05 kB / 445.7 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.576e-05/0.3513, allocations: 32 kB / 445.7 MB, free: 11.35 MB / 366.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.00038/0.3517, allocations: 272.4 kB / 446 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.3518, allocations: 86.88 kB / 446.1 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009434/0.3528, allocations: 0.5032 MB / 446.6 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.3528, allocations: 7.938 kB / 446.6 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.3528, allocations: 4 kB / 446.6 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.3528, allocations: 0 / 446.6 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002074/0.3549, allocations: 1.474 MB / 448.1 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.3549, allocations: 4 kB / 448.1 MB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003213/0.3552, allocations: 76.02 kB / 448.2 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001954/0.3554, allocations: 77.89 kB / 448.2 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.65e-05/0.3555, allocations: 8 kB / 448.2 MB, free: 8.727 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002171/0.3576, allocations: 3.123 MB / 451.4 MB, free: 5.332 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.3577, allocations: 7.969 kB / 451.4 MB, free: 5.324 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.3589, allocations: 0.8014 MB / 452.2 MB, free: 4.473 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002779/0.3592, allocations: 204 kB / 452.4 MB, free: 4.254 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.822e-05/0.3593, allocations: 15.94 kB / 452.4 MB, free: 4.238 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004324/0.3597, allocations: 36.09 kB / 452.4 MB, free: 4.203 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.26e-05/0.3598, allocations: 43.64 kB / 452.5 MB, free: 4.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.562e-05/0.3599, allocations: 12 kB / 452.5 MB, free: 4.148 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007261/0.3606, allocations: 0.5732 MB / 453.1 MB, free: 3.582 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3606, allocations: 0 / 453.1 MB, free: 3.582 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007954/0.3614, allocations: 208 kB / 453.3 MB, free: 3.379 MB / 366.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.001625/0.363, allocations: 1.374 MB / 454.6 MB, free: 1.949 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001195/0.3642, allocations: 0.7099 MB / 455.3 MB, free: 1.215 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3643, allocations: 0 / 455.3 MB, free: 1.215 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006455/0.3649, allocations: 465.3 kB / 455.8 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.366, allocations: 226.7 kB / 456 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009902/0.3759, allocations: 7.428 MB / 463.4 MB, free: 8.641 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005812/0.3765, allocations: 1.009 MB / 464.5 MB, free: 7.605 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004194/0.3769, allocations: 111.3 kB / 464.6 MB, free: 7.492 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004301/0.3773, allocations: 391.3 kB / 464.9 MB, free: 7.109 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3774, allocations: 4 kB / 464.9 MB, free: 7.105 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0487/0.4261, allocations: 19.75 MB / 484.7 MB, free: 3.645 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.45, allocations: 7.25 kB / 484.7 MB, free: 3.641 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches