Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.ForDocumentation.TheDifferentClocks.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/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/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.WorkInProgress.ForDocumentation.TheDifferentClocks,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_ForDocumentation_TheDifferentClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.ForDocumentation.TheDifferentClocks,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_ForDocumentation_TheDifferentClocks",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.0009979/0.0009979, allocations: 171.1 kB / 16.76 MB, free: 4.906 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.139/1.139, allocations: 205.4 MB / 222.9 MB, free: 9.008 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.0006626/0.0006626, allocations: 81.05 kB / 271.3 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05473/0.05473, allocations: 12.2 MB / 331.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003649/0.000365, allocations: 16 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08569/0.08607, allocations: 50.28 MB / 442.5 MB, free: 16.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.ForDocumentation.TheDifferentClocks): time 0.00131/0.08742, allocations: 1.199 MB / 443.7 MB, free: 15.35 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006475/0.08808, allocations: 0.4922 MB / 444.2 MB, free: 14.85 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.038e-05/0.08817, allocations: 0 / 444.2 MB, free: 14.85 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.463e-05/0.08822, allocations: 3.938 kB / 444.2 MB, free: 14.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001288/0.08835, allocations: 11.92 kB / 444.2 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002817/0.08864, allocations: 63.88 kB / 444.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.522e-05/0.08874, allocations: 55.78 kB / 444.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.738e-05/0.08883, allocations: 15.98 kB / 444.3 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.168e-05/0.08889, allocations: 27.81 kB / 444.4 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.336e-05/0.08894, allocations: 23.86 kB / 444.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.523e-05/0.08896, allocations: 3.984 kB / 444.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.214e-05/0.08897, allocations: 4 kB / 444.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.325e-05/0.08901, allocations: 11.92 kB / 444.4 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.89e-05/0.08906, allocations: 49.52 kB / 444.4 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.745e-05/0.08913, allocations: 39.92 kB / 444.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.08914, allocations: 3.938 kB / 444.5 MB, free: 14.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.08915, allocations: 0 / 444.5 MB, free: 14.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.935e-06/0.08916, allocations: 4 kB / 444.5 MB, free: 14.53 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004213/0.08958, allocations: 379.5 kB / 444.9 MB, free: 14.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.08962, allocations: 12.03 kB / 444.9 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.71e-05/0.08968, allocations: 42.64 kB / 444.9 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.485e-05/0.08971, allocations: 12.84 kB / 444.9 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001434/0.08986, allocations: 200.6 kB / 445.1 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.965e-06/0.08987, allocations: 8.375 kB / 445.1 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.44e-05/0.08989, allocations: 7.938 kB / 445.1 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002079/0.09011, allocations: 151.4 kB / 445.3 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.09012, allocations: 0 / 445.3 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.178e-06/0.09014, allocations: 0 / 445.3 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.09015, allocations: 3.984 kB / 445.3 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.117e-05/0.09018, allocations: 15.98 kB / 445.3 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002419/0.09043, allocations: 260.9 kB / 445.6 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.244e-05/0.09049, allocations: 30.56 kB / 445.6 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.504e-05/0.09051, allocations: 8.859 kB / 445.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.017e-05/0.09052, allocations: 0 / 445.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.823e-05/0.09063, allocations: 59.41 kB / 445.7 MB, free: 13.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.09064, allocations: 0 / 445.7 MB, free: 13.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.000125/0.09077, allocations: 65.58 kB / 445.7 MB, free: 13.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.48e-05/0.0908, allocations: 59.34 kB / 445.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.675e-05/0.09089, allocations: 154.3 kB / 445.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.807e-06/0.09091, allocations: 29.7 kB / 446 MB, free: 12.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.469e-05/0.09095, allocations: 92.12 kB / 446.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.136e-06/0.09096, allocations: 15.78 kB / 446.1 MB, free: 12.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.477e-06/0.09097, allocations: 4 kB / 446.1 MB, free: 12.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.031e-05/0.09102, allocations: 318.8 kB / 446.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.627e-05/0.09104, allocations: 8 kB / 446.4 MB, free: 12.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.676e-05/0.09106, allocations: 17.72 kB / 446.4 MB, free: 12.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.985e-05/0.09109, allocations: 25.7 kB / 446.4 MB, free: 12.33 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.0911, allocations: 0 / 446.4 MB, free: 12.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.455e-05/0.09117, allocations: 69.53 kB / 446.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.789e-06/0.09119, allocations: 4 kB / 446.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-06/0.0912, allocations: 3.938 kB / 446.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.09121, allocations: 4 kB / 446.5 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.167e-05/0.09125, allocations: 0 / 446.5 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.09126, allocations: 3.938 kB / 446.5 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.3e-05/0.09132, allocations: 8 kB / 446.5 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-06/0.09133, allocations: 3.984 kB / 446.5 MB, free: 12.23 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 5.705e-05/0.09139, allocations: 130.5 kB / 446.7 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.09e-05/0.0914, allocations: 7.906 kB / 446.7 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.214e-05/0.09143, allocations: 12.23 kB / 446.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.09144, allocations: 4 kB / 446.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.09145, allocations: 3.938 kB / 446.7 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.09145, allocations: 0 / 446.7 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002228/0.09168, allocations: 318.6 kB / 447 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.09169, allocations: 4.125 kB / 447 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.644e-06/0.0917, allocations: 11.94 kB / 447 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.09171, allocations: 3.938 kB / 447 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.461e-06/0.09172, allocations: 288 / 447 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.09173, allocations: 0 / 447 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.09173, allocations: 3.984 kB / 447 MB, free: 11.67 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.335e-05/0.09181, allocations: 155.4 kB / 447.2 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.679e-05/0.09186, allocations: 92.91 kB / 447.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.423e-05/0.09188, allocations: 11.92 kB / 447.3 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.224e-05/0.09196, allocations: 12 kB / 447.3 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.908e-05/0.092, allocations: 3.984 kB / 447.3 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-06/0.09201, allocations: 4 kB / 447.3 MB, free: 11.36 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.812e-05/0.09206, allocations: 111.2 kB / 447.4 MB, free: 11.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.09207, allocations: 0 / 447.4 MB, free: 11.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001984/0.09227, allocations: 11.94 kB / 447.4 MB, free: 11.24 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (booleanPulse.y,$whenCondition1,booleanPulse.pulseStart,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002192/0.09249, allocations: 0.6928 MB / 448.1 MB, free: 10.52 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.484e-05/0.09258, allocations: 19.98 kB / 448.1 MB, free: 10.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.09259, allocations: 3.938 kB / 448.1 MB, free: 10.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.329e-05/0.09262, allocations: 12 kB / 448.1 MB, free: 10.49 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002712/0.09289, allocations: 15.98 kB / 448.2 MB, free: 10.47 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005963/0.0935, allocations: 0.5332 MB / 448.7 MB, free: 9.879 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001157/0.09363, allocations: 0.6926 MB / 449.4 MB, free: 9.16 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.469e-05/0.09367, allocations: 19.44 kB / 449.4 MB, free: 9.141 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.09367, allocations: 0 / 449.4 MB, free: 9.141 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.367/2.461, allocations: 1.12 MB / 450.5 MB, free: 8.023 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.ForDocumentation.TheDifferentClocks.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.ForDocumentation.TheDifferentClocks.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.ForDocumentation.TheDifferentClocks.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.ForDocumentation.TheDifferentClocks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_ForDocumentation_TheDifferentClocks_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_ForDocumentation_TheDifferentClocks.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.ForDocumentation.TheDifferentClocks.pipe 2>&1)