Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.SSVTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ExternData.Examples.SSVTest,fileNamePrefix="ExternData_ExternData_Examples_SSVTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.SSVTest,fileNamePrefix="ExternData_ExternData_Examples_SSVTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005495/0.005495, allocations: 103.1 kB / 15.73 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 188.4 kB / 16.67 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.01749/0.01749, allocations: 2.957 MB / 293.5 MB, free: 11.8 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 67.89 kB / 405.8 MB, free: 29.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09193/0.0932, allocations: 50.33 MB / 456.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.SSVTest): time 0.003143/0.09638, allocations: 1.541 MB / 457.6 MB, free: 9.352 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001126/0.09753, allocations: 0.7971 MB / 458.4 MB, free: 8.551 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.534e-05/0.0976, allocations: 0 / 458.4 MB, free: 8.551 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo:165:3-189:14:writable] Warning: Pure function 'ExternData.SSVFile' contains a call to impure function 'ExternData.Types.ExternXML2File.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.000386/0.098, allocations: 39.84 kB / 458.5 MB, free: 8.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001673/0.09817, allocations: 31.84 kB / 458.5 MB, free: 8.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.019e-05/0.09821, allocations: 7.984 kB / 458.5 MB, free: 8.473 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.592e-05/0.0983, allocations: 27.92 kB / 458.5 MB, free: 8.445 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.441e-05/0.0984, allocations: 12.5 kB / 458.6 MB, free: 8.434 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.334e-05/0.09846, allocations: 8 kB / 458.6 MB, free: 8.426 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000129/0.0986, allocations: 19.91 kB / 458.6 MB, free: 8.406 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.081e-05/0.09862, allocations: 0 / 458.6 MB, free: 8.406 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.681e-05/0.09872, allocations: 27.98 kB / 458.6 MB, free: 8.379 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.331e-05/0.09874, allocations: 7.938 kB / 458.6 MB, free: 8.371 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.666e-05/0.09877, allocations: 11.92 kB / 458.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001455/0.09892, allocations: 51.83 kB / 458.7 MB, free: 8.309 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.09894, allocations: 0 / 458.7 MB, free: 8.309 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.09895, allocations: 4 kB / 458.7 MB, free: 8.305 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.09896, allocations: 0 / 458.7 MB, free: 8.305 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005013/0.09946, allocations: 342.3 kB / 459 MB, free: 7.922 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.09951, allocations: 15.89 kB / 459 MB, free: 7.906 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.605e-05/0.09955, allocations: 42.72 kB / 459.1 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.174e-05/0.09959, allocations: 8.844 kB / 459.1 MB, free: 7.848 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.09974, allocations: 168.6 kB / 459.2 MB, free: 7.645 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.859e-06/0.09975, allocations: 384 / 459.2 MB, free: 7.645 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.536e-06/0.09977, allocations: 4.375 kB / 459.2 MB, free: 7.641 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001141/0.09989, allocations: 42.25 kB / 459.3 MB, free: 7.594 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.09991, allocations: 7.938 kB / 459.3 MB, free: 7.586 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.09992, allocations: 0 / 459.3 MB, free: 7.586 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.09993, allocations: 3.938 kB / 459.3 MB, free: 7.582 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.603e-05/0.1, allocations: 19.92 kB / 459.3 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003232/0.1003, allocations: 252.9 kB / 459.6 MB, free: 7.266 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.799e-05/0.1004, allocations: 34.52 kB / 459.6 MB, free: 7.223 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.126e-05/0.1005, allocations: 12.91 kB / 459.6 MB, free: 7.207 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.356e-06/0.1005, allocations: 3.938 kB / 459.6 MB, free: 7.203 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.189e-05/0.1005, allocations: 38.5 kB / 459.7 MB, free: 7.156 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.1005, allocations: 0 / 459.7 MB, free: 7.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002096/0.1007, allocations: 53.69 kB / 459.7 MB, free: 7.098 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.788e-05/0.1008, allocations: 63.52 kB / 459.8 MB, free: 7.023 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.4e-05/0.1009, allocations: 109.8 kB / 459.9 MB, free: 6.906 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.137e-05/0.1009, allocations: 25.7 kB / 459.9 MB, free: 6.875 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.138e-05/0.101, allocations: 84.14 kB / 460 MB, free: 6.789 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.839e-05/0.101, allocations: 7.891 kB / 460 MB, free: 6.781 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.852e-05/0.101, allocations: 17.72 kB / 460 MB, free: 6.758 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.1011, allocations: 314.8 kB / 460.3 MB, free: 6.441 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.685e-05/0.1012, allocations: 4 kB / 460.3 MB, free: 6.438 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.186e-05/0.1012, allocations: 19.98 kB / 460.3 MB, free: 6.418 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.1e-05/0.1013, allocations: 16.8 kB / 460.4 MB, free: 6.398 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.1013, allocations: 3.938 kB / 460.4 MB, free: 6.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.00011/0.1014, allocations: 53.67 kB / 460.4 MB, free: 6.336 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.1014, allocations: 4 kB / 460.4 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.1015, allocations: 4 kB / 460.4 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.1015, allocations: 4.094 kB / 460.4 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.365e-05/0.1015, allocations: 4 kB / 460.4 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.1016, allocations: 0 / 460.4 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.113e-05/0.1016, allocations: 3.906 kB / 460.4 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.693e-06/0.1016, allocations: 4 kB / 460.4 MB, free: 6.312 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.276e-05/0.1017, allocations: 118.4 kB / 460.6 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.762e-05/0.1017, allocations: 0 / 460.6 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.31e-05/0.1017, allocations: 11.47 kB / 460.6 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.1017, allocations: 0 / 460.6 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1018, allocations: 4 kB / 460.6 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.1018, allocations: 0 / 460.6 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001616/0.1019, allocations: 169.6 kB / 460.7 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1019, allocations: 0 / 460.7 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.76e-05/0.102, allocations: 4 kB / 460.7 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.102, allocations: 3.938 kB / 460.7 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.264e-06/0.102, allocations: 0 / 460.7 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.102, allocations: 0 / 460.7 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.102, allocations: 4 kB / 460.7 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001529/0.1022, allocations: 151.4 kB / 460.9 MB, free: 5.777 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.103e-05/0.1022, allocations: 81.09 kB / 461 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.786e-05/0.1022, allocations: 4 kB / 461 MB, free: 5.676 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.816e-05/0.1023, allocations: 4 kB / 461 MB, free: 5.672 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.817e-05/0.1023, allocations: 0 / 461 MB, free: 5.672 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/0.1024, allocations: 4 kB / 461 MB, free: 5.668 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.746e-05/0.1024, allocations: 103.4 kB / 461.1 MB, free: 5.566 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1024, allocations: 0 / 461.1 MB, free: 5.566 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002308/0.1027, allocations: 15.97 kB / 461.1 MB, free: 5.551 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008259/0.1035, allocations: 0.7728 MB / 461.9 MB, free: 4.797 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001319/0.1036, allocations: 19.98 kB / 461.9 MB, free: 4.777 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.1036, allocations: 0 / 461.9 MB, free: 4.777 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.186e-05/0.1037, allocations: 15.94 kB / 461.9 MB, free: 4.762 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002658/0.104, allocations: 7.984 kB / 461.9 MB, free: 4.754 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.1052, allocations: 1.234 MB / 463.1 MB, free: 3.438 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002581/0.1055, allocations: 0.6884 MB / 463.8 MB, free: 2.723 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.942e-05/0.1055, allocations: 4.125 kB / 463.8 MB, free: 2.719 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.161e-05/0.1056, allocations: 23.42 kB / 463.9 MB, free: 2.695 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1056, allocations: 0 / 463.9 MB, free: 2.695 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01954/0.1251, allocations: 1.775 MB / 465.6 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.503/7.628, allocations: 2.156 kB / 465.6 MB, free: 0.9844 MB / 334.1 MB (rm -f ExternData_ExternData.Examples.SSVTest.pipe ; mkfifo ExternData_ExternData.Examples.SSVTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.SSVTest.pipe >> ../files/ExternData_ExternData.Examples.SSVTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_SSVTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_SSVTest.fmu > ExternData_ExternData.Examples.SSVTest.pipe 2>&1)