Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.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/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/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(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) [: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 3.2.3+maint.om/package.mo): time 0.001714/0.001714, allocations: 187 kB / 7.844 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.828/1.828, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.001285/0.001284, allocations: 86.67 kB / 261.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1024/0.1024, allocations: 12.59 MB / 322 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3049/0.4074, allocations: 56.49 MB / 378.5 MB, free: 75.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.5415, allocations: 50.37 MB / 428.9 MB, free: 25.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4337/0.9753, allocations: 78.29 MB / 0.4953 GB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003306/0.9757, allocations: 71.22 kB / 0.4953 GB, free: 11.9 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0128/0.9885, allocations: 2.243 MB / 0.4975 GB, free: 11.41 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.9886, allocations: 7.75 kB / 0.4975 GB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.726e-05/0.9887, allocations: 13.06 kB / 0.4975 GB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.9889, allocations: 189.7 kB / 0.4977 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.75e-05/0.989, allocations: 7.812 kB / 0.4977 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.755e-05/0.9891, allocations: 3.844 kB / 0.4977 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002316/0.9893, allocations: 48.17 kB / 0.4978 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002672/0.9896, allocations: 89.53 kB / 0.4979 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.152e-05/0.9896, allocations: 3.906 kB / 0.4979 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.085e-05/0.9897, allocations: 3.938 kB / 0.4979 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.9897, allocations: 0 / 0.4979 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001082/0.9908, allocations: 0.5092 MB / 0.4984 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002062/0.991, allocations: 49.33 kB / 0.4984 GB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001021/0.9912, allocations: 20.14 kB / 0.4984 GB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.11e-05/0.9912, allocations: 0 / 0.4984 GB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.776e-05/0.9912, allocations: 39.73 kB / 0.4985 GB, free: 10.67 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 3.637e-06/0.9913, allocations: 0 / 0.4985 GB, free: 10.67 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003219/0.9916, allocations: 67.33 kB / 0.4985 GB, free: 10.63 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.749e-05/0.9917, allocations: 59.34 kB / 0.4986 GB, free: 10.56 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.9918, allocations: 116 kB / 0.4987 GB, free: 10.47 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.9918, allocations: 25.7 kB / 0.4987 GB, free: 10.44 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.314e-05/0.9919, allocations: 104.5 kB / 0.4988 GB, free: 10.34 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.513e-05/0.9919, allocations: 28.66 kB / 0.4989 GB, free: 10.32 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.017e-05/0.992, allocations: 0 / 0.4989 GB, free: 10.32 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.796e-05/0.992, allocations: 321.4 kB / 0.4992 GB, free: 10.01 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.778e-05/0.9921, allocations: 22.72 kB / 0.4992 GB, free: 10.01 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001005/0.9923, allocations: 57.02 kB / 0.4992 GB, free: 9.961 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.071e-05/0.9924, allocations: 22.55 kB / 0.4993 GB, free: 9.961 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.9924, allocations: 0 / 0.4993 GB, free: 9.961 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000312/0.9927, allocations: 100.3 kB / 0.4994 GB, free: 9.914 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.9927, allocations: 5.484 kB / 0.4994 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.9928, allocations: 3.844 kB / 0.4994 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.9928, allocations: 0 / 0.4994 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004529/0.9933, allocations: 32.95 kB / 0.4994 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.9933, allocations: 7.812 kB / 0.4994 GB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002268/0.9935, allocations: 26.17 kB / 0.4994 GB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.832e-05/0.9936, allocations: 3.875 kB / 0.4994 GB, free: 9.898 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.151e-05/0.9937, allocations: 104.9 kB / 0.4995 GB, free: 9.789 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.999e-05/0.9938, allocations: 8.656 kB / 0.4995 GB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.842e-05/0.9939, allocations: 13.11 kB / 0.4996 GB, free: 9.781 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.852e-06/0.9939, allocations: 0 / 0.4996 GB, free: 9.781 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.9939, allocations: 0 / 0.4996 GB, free: 9.781 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.9939, allocations: 1.172 kB / 0.4996 GB, free: 9.781 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003293/0.9943, allocations: 173.1 kB / 0.4997 GB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.9943, allocations: 7.906 kB / 0.4997 GB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003848/0.9947, allocations: 24.44 kB / 0.4998 GB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/0.9947, allocations: 0 / 0.4998 GB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.001e-05/0.9947, allocations: 96 / 0.4998 GB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.9948, allocations: 3.938 kB / 0.4998 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.9948, allocations: 3.938 kB / 0.4998 GB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003725/0.9952, allocations: 195.6 kB / 0.4999 GB, free: 9.469 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004645/0.9956, allocations: 0.5763 MB / 0.5005 GB, free: 8.961 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.369e-05/0.9957, allocations: 85.75 kB / 0.5006 GB, free: 8.863 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.243e-05/0.9958, allocations: 0 / 0.5006 GB, free: 8.863 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002743/0.9961, allocations: 22.22 kB / 0.5006 GB, free: 8.852 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.499e-05/0.9962, allocations: 6.469 kB / 0.5006 GB, free: 8.852 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.9962, allocations: 0 / 0.5006 GB, free: 8.852 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.249e-05/0.9963, allocations: 99.95 kB / 0.5007 GB, free: 8.777 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002151/0.9984, allocations: 23.31 kB / 0.5007 GB, free: 8.77 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001815/0.9987, allocations: 103 kB / 0.5008 GB, free: 8.68 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002816/0.999, allocations: 50.14 kB / 0.5009 GB, free: 8.672 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.999, allocations: 4.062 kB / 0.5009 GB, free: 8.668 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.566e-05/0.9991, allocations: 24.62 kB / 0.5009 GB, free: 8.668 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005445/0.9996, allocations: 14.25 kB / 0.5009 GB, free: 8.668 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001043/1.001, allocations: 262.6 kB / 0.5012 GB, free: 8.48 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003374/1.001, allocations: 0.7305 MB / 0.5019 GB, free: 7.773 MB / 330.7 MB Notification: Performance of SimCode: time 1.613e-06/1.001, allocations: 0 / 0.5019 GB, free: 7.773 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat