Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3",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.002612/0.002612, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.116/2.116, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.00157/0.00157, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2775/0.2775, allocations: 43.5 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.292e-05/3.296e-05, allocations: 7.938 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1199, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4792/0.5991, allocations: 84.56 MB / 0.5555 GB, free: 2.898 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002344/0.5994, allocations: 68.59 kB / 0.5555 GB, free: 2.863 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007343/0.6068, allocations: 2.013 MB / 0.5575 GB, free: 1.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.6068, allocations: 0 / 0.5575 GB, free: 1.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.759e-06/0.6069, allocations: 4 kB / 0.5575 GB, free: 1.176 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0003955/0.6073, allocations: 378.5 kB / 0.5579 GB, free: 0.7656 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.6073, allocations: 8.031 kB / 0.5579 GB, free: 0.7578 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.402e-05/0.6074, allocations: 45.73 kB / 0.5579 GB, free: 0.7109 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.812e-05/0.6074, allocations: 11.91 kB / 0.5579 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001132/0.6076, allocations: 182.8 kB / 0.5581 GB, free: 492 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/0.6076, allocations: 7.547 kB / 0.5581 GB, free: 488 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.822e-05/0.6076, allocations: 15.42 kB / 0.5581 GB, free: 476 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002571/0.6079, allocations: 130.9 kB / 0.5582 GB, free: 364 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.6079, allocations: 0 / 0.5582 GB, free: 364 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.766e-05/0.608, allocations: 3.312 kB / 0.5582 GB, free: 364 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.608, allocations: 4 kB / 0.5583 GB, free: 360 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001418/0.6081, allocations: 64.48 kB / 0.5583 GB, free: 312 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009471/0.6091, allocations: 0.5403 MB / 0.5588 GB, free: 15.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001869/0.6093, allocations: 86.48 kB / 0.5589 GB, free: 15.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.896e-05/0.6094, allocations: 23.78 kB / 0.5589 GB, free: 15.65 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.812e-05/0.6094, allocations: 11.42 kB / 0.559 GB, free: 15.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.256e-05/0.6094, allocations: 38.5 kB / 0.559 GB, free: 15.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 2.184e-06/0.6095, allocations: 0 / 0.559 GB, free: 15.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004231/0.6099, allocations: 103 kB / 0.5591 GB, free: 15.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/0.61, allocations: 77.11 kB / 0.5592 GB, free: 15.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.6101, allocations: 121.1 kB / 0.5593 GB, free: 15.29 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/0.6101, allocations: 29.7 kB / 0.5593 GB, free: 15.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.6102, allocations: 180.7 kB / 0.5595 GB, free: 15.08 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.125e-05/0.6103, allocations: 37.72 kB / 0.5595 GB, free: 15.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.592e-06/0.6103, allocations: 0 / 0.5595 GB, free: 15.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.6105, allocations: 318.2 kB / 0.5598 GB, free: 14.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.167e-05/0.6105, allocations: 18.44 kB / 0.5598 GB, free: 14.72 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.6107, allocations: 94.08 kB / 0.5599 GB, free: 14.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.486e-05/0.6108, allocations: 34.08 kB / 0.56 GB, free: 14.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.6108, allocations: 4 kB / 0.56 GB, free: 14.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004132/0.6112, allocations: 161.8 kB / 0.5601 GB, free: 14.44 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.6113, allocations: 8 kB / 0.5601 GB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.6113, allocations: 0 / 0.5601 GB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002446/0.6115, allocations: 49.48 kB / 0.5602 GB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001547/0.6117, allocations: 23.92 kB / 0.5602 GB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002347/0.6141, allocations: 2.528 MB / 0.5627 GB, free: 11.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.6142, allocations: 11.47 kB / 0.5627 GB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.589e-05/0.6143, allocations: 15.92 kB / 0.5627 GB, free: 11.62 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00015/0.6144, allocations: 112.1 kB / 0.5628 GB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.554e-05/0.6145, allocations: 11.86 kB / 0.5628 GB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.067e-05/0.6145, allocations: 14.09 kB / 0.5628 GB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.6146, allocations: 0 / 0.5628 GB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.6146, allocations: 0 / 0.5628 GB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.6146, allocations: 4 kB / 0.5628 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003486/0.6149, allocations: 200.9 kB / 0.563 GB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.615, allocations: 0 / 0.563 GB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.6152, allocations: 15.95 kB / 0.563 GB, free: 11.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001764/0.6153, allocations: 37.45 kB / 0.5631 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.6154, allocations: 3.562 kB / 0.5631 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002299/0.6177, allocations: 2.536 MB / 0.5656 GB, free: 8.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.6177, allocations: 0 / 0.5656 GB, free: 8.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000452/0.6182, allocations: 316.6 kB / 0.5659 GB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.593e-05/0.6183, allocations: 96.92 kB / 0.5659 GB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.1e-05/0.6183, allocations: 3.75 kB / 0.5659 GB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000152/0.6185, allocations: 0 / 0.5659 GB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.408e-05/0.6185, allocations: 11.89 kB / 0.566 GB, free: 8.043 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.6186, allocations: 15.47 kB / 0.566 GB, free: 8.035 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.147e-05/0.6186, allocations: 87.09 kB / 0.5661 GB, free: 7.953 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6186, allocations: 0 / 0.5661 GB, free: 7.953 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004777/0.6191, allocations: 39.84 kB / 0.5661 GB, free: 7.918 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.phi,J2.w,J3.phi,J4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008458/0.62, allocations: 0.908 MB / 0.567 GB, free: 7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005486/0.6206, allocations: 300.4 kB / 0.5673 GB, free: 6.703 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.6206, allocations: 0 / 0.5673 GB, free: 6.703 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003767/0.621, allocations: 252.2 kB / 0.5675 GB, free: 6.441 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000443/0.6214, allocations: 28.66 kB / 0.5675 GB, free: 6.422 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001257/0.6227, allocations: 471.4 kB / 0.568 GB, free: 5.934 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003559/0.6231, allocations: 0.7161 MB / 0.5687 GB, free: 5.191 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.152e-05/0.6232, allocations: 26.44 kB / 0.5687 GB, free: 5.18 MB / 378.7 MB Notification: Performance of SimCode: time 9.11e-07/0.6232, allocations: 4 kB / 0.5687 GB, free: 5.176 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.872/3.495, allocations: 2.887 MB / 0.5715 GB, free: 2.309 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat does not exist to compare? outputFormat=mat