Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001811/0.001811, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002331/0.002331, allocations: 205.9 kB / 24.53 MB, free: 4.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 230.5 MB / 258.2 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2347/0.2347, allocations: 46.93 MB / 361.6 MB, free: 4.168 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002259/0.002259, allocations: 79.88 kB / 0.497 GB, free: 7.766 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4177/0.42, allocations: 66.09 MB / 0.5615 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003534/0.4235, allocations: 1.928 MB / 0.5634 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001079/0.4246, allocations: 0.5737 MB / 0.5639 GB, free: 1.652 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.4247, allocations: 7.938 kB / 0.5639 GB, free: 1.645 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001412/0.4249, allocations: 23.8 kB / 0.564 GB, free: 1.621 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001132/0.425, allocations: 43.62 kB / 0.564 GB, free: 1.578 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002675/0.4253, allocations: 47.89 kB / 0.5641 GB, free: 1.531 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002481/0.4255, allocations: 155.2 kB / 0.5642 GB, free: 1.379 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001926/0.4257, allocations: 47.8 kB / 0.5642 GB, free: 1.328 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002787/0.426, allocations: 63.78 kB / 0.5643 GB, free: 1.266 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001498/0.4261, allocations: 67.69 kB / 0.5644 GB, free: 1.199 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.999e-05/0.4261, allocations: 12 kB / 0.5644 GB, free: 1.188 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.114e-05/0.4262, allocations: 16 kB / 0.5644 GB, free: 1.172 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.66e-05/0.4263, allocations: 27.86 kB / 0.5644 GB, free: 1.145 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.083e-05/0.4263, allocations: 67.67 kB / 0.5645 GB, free: 1.078 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002961/0.4266, allocations: 167.3 kB / 0.5647 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.4266, allocations: 0 / 0.5647 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.4267, allocations: 0 / 0.5647 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.4267, allocations: 0 / 0.5647 GB, free: 0.9141 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006638/0.4273, allocations: 357.7 kB / 0.565 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.4274, allocations: 12.03 kB / 0.565 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.438e-05/0.4274, allocations: 4.188 kB / 0.565 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.713e-05/0.4274, allocations: 46.73 kB / 0.5651 GB, free: 476 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001661/0.4276, allocations: 28.83 kB / 0.5651 GB, free: 448 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002898/0.4279, allocations: 150.3 kB / 0.5652 GB, free: 272 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.4279, allocations: 12.38 kB / 0.5652 GB, free: 260 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.295e-05/0.428, allocations: 20.08 kB / 0.5653 GB, free: 240 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002846/0.4282, allocations: 121.6 kB / 0.5654 GB, free: 112 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.4283, allocations: 4 kB / 0.5654 GB, free: 108 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.666e-05/0.4283, allocations: 4 kB / 0.5654 GB, free: 104 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.4283, allocations: 4 kB / 0.5654 GB, free: 100 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000208/0.4285, allocations: 95.86 kB / 0.5655 GB, free: 4 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007999/0.4293, allocations: 427.4 kB / 0.5659 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002549/0.4296, allocations: 118.4 kB / 0.566 GB, free: 15.42 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.4297, allocations: 52.83 kB / 0.566 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.224e-05/0.4297, allocations: 8 kB / 0.5661 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.629e-05/0.4297, allocations: 34.56 kB / 0.5661 GB, free: 15.31 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.553e-06/0.4297, allocations: 3.938 kB / 0.5661 GB, free: 15.31 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001589/0.4313, allocations: 0.6653 MB / 0.5667 GB, free: 14.59 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.4314, allocations: 51.41 kB / 0.5668 GB, free: 14.53 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001514/0.4315, allocations: 149.5 kB / 0.5669 GB, free: 14.37 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.4315, allocations: 29.7 kB / 0.567 GB, free: 14.34 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.896e-05/0.4316, allocations: 108.4 kB / 0.5671 GB, free: 14.22 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.505e-05/0.4317, allocations: 71.39 kB / 0.5671 GB, free: 14.15 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.02e-05/0.4318, allocations: 33.7 kB / 0.5672 GB, free: 14.11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.4319, allocations: 330.8 kB / 0.5675 GB, free: 13.78 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/0.432, allocations: 43.97 kB / 0.5675 GB, free: 13.74 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001282/0.4321, allocations: 75.34 kB / 0.5676 GB, free: 13.65 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002417/0.4324, allocations: 139.3 kB / 0.5677 GB, free: 13.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.4324, allocations: 0 / 0.5677 GB, free: 13.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004001/0.4328, allocations: 210.1 kB / 0.5679 GB, free: 13.29 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.4328, allocations: 8 kB / 0.5679 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.4328, allocations: 0 / 0.5679 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001827/0.433, allocations: 36.84 kB / 0.568 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001821/0.4332, allocations: 35.97 kB / 0.568 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001695/0.4349, allocations: 1.641 MB / 0.5696 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.764e-05/0.4349, allocations: 8.031 kB / 0.5696 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.704e-05/0.435, allocations: 4 kB / 0.5696 GB, free: 11.44 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001262/0.4351, allocations: 129.8 kB / 0.5697 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.829e-05/0.4351, allocations: 11.95 kB / 0.5697 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.545e-05/0.4352, allocations: 21.06 kB / 0.5698 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.4352, allocations: 8.062 kB / 0.5698 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.4352, allocations: 0 / 0.5698 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.4352, allocations: 0 / 0.5698 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008537/0.436, allocations: 0.5223 MB / 0.5703 GB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.436, allocations: 0 / 0.5703 GB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001676/0.4362, allocations: 39.86 kB / 0.5703 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001232/0.4363, allocations: 32.86 kB / 0.5704 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.028e-05/0.4364, allocations: 8 kB / 0.5704 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001283/0.4376, allocations: 1.377 MB / 0.5717 GB, free: 9.113 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.4376, allocations: 0 / 0.5717 GB, free: 9.113 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005802/0.4382, allocations: 347.3 kB / 0.572 GB, free: 8.754 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.575e-05/0.4382, allocations: 15.92 kB / 0.5721 GB, free: 8.738 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.275e-05/0.4383, allocations: 8 kB / 0.5721 GB, free: 8.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.501e-05/0.4384, allocations: 7.938 kB / 0.5721 GB, free: 8.723 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.874e-05/0.4384, allocations: 15.97 kB / 0.5721 GB, free: 8.707 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.4384, allocations: 4 kB / 0.5721 GB, free: 8.703 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000105/0.4385, allocations: 110.2 kB / 0.5722 GB, free: 8.598 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4385, allocations: 4 kB / 0.5722 GB, free: 8.594 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003357/0.4389, allocations: 40 kB / 0.5722 GB, free: 8.555 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009073/0.4398, allocations: 0.8818 MB / 0.5731 GB, free: 7.641 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006143/0.4404, allocations: 254.8 kB / 0.5733 GB, free: 7.379 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.4404, allocations: 0 / 0.5733 GB, free: 7.379 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003001/0.4407, allocations: 192.6 kB / 0.5735 GB, free: 7.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003827/0.4411, allocations: 16 kB / 0.5735 GB, free: 7.164 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002997/0.4441, allocations: 2.063 MB / 0.5756 GB, free: 4.992 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004281/0.4445, allocations: 0.7205 MB / 0.5763 GB, free: 4.242 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.17e-05/0.4446, allocations: 17.42 kB / 0.5763 GB, free: 4.223 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.615e-05/0.4447, allocations: 39.42 kB / 0.5763 GB, free: 4.184 MB / 414.1 MB Notification: Performance of SimCode: time 1.483e-06/0.4447, allocations: 0 / 0.5763 GB, free: 4.184 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03046/0.4751, allocations: 3.642 MB / 0.5799 GB, free: 0.668 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/12.9, allocations: 8.062 kB / 0.5799 GB, free: 0.6602 MB / 414.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.122082367015537]