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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001309/0.001309, allocations: 195.2 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 225.5 MB / 234.4 MB, free: 3.32 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008233/0.0008233, allocations: 94.3 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.189/0.189, allocations: 45.14 MB / 383.3 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.274e-06/7.504e-06, allocations: 4 kB / 452.6 MB, free: 76.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.117, allocations: 63.24 MB / 0.5038 GB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3837/0.5008, allocations: 87.73 MB / 0.5894 GB, free: 15.21 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/0.5011, allocations: 62.16 kB / 0.5895 GB, free: 15.18 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01089/0.512, allocations: 2.362 MB / 0.5918 GB, free: 13.27 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.597e-05/0.5121, allocations: 4 kB / 0.5918 GB, free: 13.26 MB / 394.7 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.0006097/0.5127, allocations: 408.8 kB / 0.5922 GB, free: 12.82 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.5128, allocations: 8.031 kB / 0.5922 GB, free: 12.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002377/0.513, allocations: 27.8 kB / 0.5922 GB, free: 12.79 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002825/0.5133, allocations: 205.2 kB / 0.5924 GB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.5133, allocations: 4 kB / 0.5924 GB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.966e-05/0.5134, allocations: 12 kB / 0.5925 GB, free: 12.54 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000248/0.5137, allocations: 68.33 kB / 0.5925 GB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000272/0.514, allocations: 101 kB / 0.5926 GB, free: 12.41 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.514, allocations: 0 / 0.5926 GB, free: 12.41 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.003e-05/0.514, allocations: 0 / 0.5926 GB, free: 12.41 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.514, allocations: 7.984 kB / 0.5926 GB, free: 12.41 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008981/0.5149, allocations: 422 kB / 0.593 GB, free: 12.01 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001776/0.5151, allocations: 80.44 kB / 0.5931 GB, free: 11.95 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001328/0.5153, allocations: 45.86 kB / 0.5931 GB, free: 11.92 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.5153, allocations: 10.62 kB / 0.5932 GB, free: 11.91 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.5154, allocations: 30.56 kB / 0.5932 GB, free: 11.87 MB / 394.7 MB Notification: Performance of pre-optimization done (n=13): time 2.124e-06/0.5154, allocations: 0 / 0.5932 GB, free: 11.87 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.00182/0.5172, allocations: 0.6954 MB / 0.5939 GB, free: 11.17 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.537e-05/0.5173, allocations: 59.41 kB / 0.5939 GB, free: 11.1 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.5174, allocations: 116.3 kB / 0.594 GB, free: 10.98 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.462e-05/0.5175, allocations: 25.7 kB / 0.5941 GB, free: 10.95 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.311e-05/0.5176, allocations: 112 kB / 0.5942 GB, free: 10.84 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.682e-05/0.5176, allocations: 65.22 kB / 0.5942 GB, free: 10.79 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.031e-05/0.5177, allocations: 0 / 0.5942 GB, free: 10.79 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.5179, allocations: 326.7 kB / 0.5945 GB, free: 10.46 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.518, allocations: 35.06 kB / 0.5946 GB, free: 10.44 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001446/0.5181, allocations: 64.5 kB / 0.5946 GB, free: 10.38 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001302/0.5183, allocations: 45.53 kB / 0.5947 GB, free: 10.35 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.5183, allocations: 4 kB / 0.5947 GB, free: 10.35 MB / 394.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004767/0.5188, allocations: 170.3 kB / 0.5948 GB, free: 10.21 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.832e-05/0.5188, allocations: 8 kB / 0.5948 GB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.5189, allocations: 0 / 0.5948 GB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002049/0.5191, allocations: 44.06 kB / 0.5949 GB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002797/0.5194, allocations: 35.97 kB / 0.5949 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001958/0.5213, allocations: 1.477 MB / 0.5964 GB, free: 8.637 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.5215, allocations: 4 kB / 0.5964 GB, free: 8.633 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.5e-05/0.5215, allocations: 15.52 kB / 0.5964 GB, free: 8.621 MB / 394.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001131/0.5217, allocations: 112.5 kB / 0.5965 GB, free: 8.508 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.993e-05/0.5217, allocations: 11.94 kB / 0.5965 GB, free: 8.496 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.81e-05/0.5218, allocations: 11.38 kB / 0.5965 GB, free: 8.488 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.5218, allocations: 4 kB / 0.5965 GB, free: 8.484 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.5218, allocations: 3.906 kB / 0.5965 GB, free: 8.48 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.5218, allocations: 0 / 0.5965 GB, free: 8.48 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001067/0.5229, allocations: 0.4934 MB / 0.597 GB, free: 8.012 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.5229, allocations: 0 / 0.597 GB, free: 8.012 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003228/0.5233, allocations: 39.88 kB / 0.597 GB, free: 7.973 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001635/0.5234, allocations: 32.47 kB / 0.5971 GB, free: 7.945 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.985e-05/0.5235, allocations: 0 / 0.5971 GB, free: 7.945 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001448/0.5249, allocations: 1.302 MB / 0.5983 GB, free: 6.594 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.525, allocations: 0 / 0.5983 GB, free: 6.594 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006459/0.5256, allocations: 333.7 kB / 0.5987 GB, free: 6.301 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.537e-05/0.5257, allocations: 88.95 kB / 0.5987 GB, free: 6.195 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.136e-05/0.5257, allocations: 0 / 0.5987 GB, free: 6.195 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001808/0.5259, allocations: 7.938 kB / 0.5988 GB, free: 6.188 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.8e-05/0.526, allocations: 15.88 kB / 0.5988 GB, free: 6.172 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/0.526, allocations: 8.203 kB / 0.5988 GB, free: 6.164 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.45e-05/0.5261, allocations: 94.47 kB / 0.5989 GB, free: 6.078 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005364/0.5267, allocations: 32 kB / 0.5989 GB, free: 6.047 MB / 394.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001651/0.5268, allocations: 99.17 kB / 0.599 GB, free: 5.938 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000533/0.5274, allocations: 215.1 kB / 0.5992 GB, free: 5.75 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.5274, allocations: 8 kB / 0.5992 GB, free: 5.742 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003262/0.5278, allocations: 173.1 kB / 0.5994 GB, free: 5.582 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003314/0.5281, allocations: 4 kB / 0.5994 GB, free: 5.578 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009805/0.5291, allocations: 326.1 kB / 0.5997 GB, free: 5.258 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004211/0.5295, allocations: 0.7348 MB / 0.6004 GB, free: 4.5 MB / 394.7 MB Notification: Performance of SimCode: time 5.01e-07/0.5295, allocations: 0 / 0.6004 GB, free: 4.5 MB / 394.7 MB Notification: Performance of Templates: time 0.006015/0.5356, allocations: 1.574 MB / 0.6019 GB, free: 2.945 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches