Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.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) 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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001224/0.001224, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 225.6 MB / 234.8 MB, free: 3.219 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001007/0.001007, allocations: 96.94 kB / 286.7 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.692e-05/2.728e-05, allocations: 4 kB / 343.8 MB, free: 8.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1221, allocations: 51.48 MB / 395.3 MB, free: 4.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3946/0.5168, allocations: 104.4 MB / 499.7 MB, free: 4.723 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/0.5171, allocations: 71.91 kB / 499.7 MB, free: 4.688 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5621/1.079, allocations: 134.5 MB / 0.6193 GB, free: 79.58 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.943e-06/1.079, allocations: 0 / 0.6193 GB, free: 79.58 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001677/1.079, allocations: 41.91 kB / 0.6194 GB, free: 79.58 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.007562/1.087, allocations: 2.65 MB / 0.622 GB, free: 78.14 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/1.087, allocations: 9.938 kB / 0.622 GB, free: 78.14 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00123/1.088, allocations: 379.3 kB / 0.6223 GB, free: 77.95 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004899/1.093, allocations: 2.23 MB / 0.6245 GB, free: 77.32 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.661e-05/1.093, allocations: 17.44 kB / 0.6245 GB, free: 77.32 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002732/1.094, allocations: 39.92 kB / 0.6246 GB, free: 77.32 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001372/1.095, allocations: 0.6797 MB / 0.6252 GB, free: 77.31 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001578/1.097, allocations: 0.7311 MB / 0.626 GB, free: 77.19 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/1.097, allocations: 4 kB / 0.626 GB, free: 77.18 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.474e-05/1.097, allocations: 1.125 kB / 0.626 GB, free: 77.18 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.444e-05/1.097, allocations: 20.56 kB / 0.626 GB, free: 77.18 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007119/1.104, allocations: 2.924 MB / 0.6288 GB, free: 76.72 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/1.105, allocations: 0.6248 MB / 0.6294 GB, free: 76.69 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001294/1.106, allocations: 0.8571 MB / 0.6303 GB, free: 76.66 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03294/1.139, allocations: 36.52 MB / 0.6659 GB, free: 47.75 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000956/1.14, allocations: 0.4944 MB / 0.6664 GB, free: 47.56 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 5.691e-06/1.14, allocations: 3.969 kB / 0.6664 GB, free: 47.56 MB / 442.7 MB Notification: Performance of matching and sorting (n=99): time 0.007712/1.148, allocations: 3.351 MB / 0.6697 GB, free: 45.78 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.883e-05/1.148, allocations: 272.8 kB / 0.67 GB, free: 45.46 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004362/1.153, allocations: 2.027 MB / 0.6719 GB, free: 44.66 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002328/1.153, allocations: 29.67 kB / 0.672 GB, free: 44.63 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001225/1.154, allocations: 1.304 MB / 0.6732 GB, free: 43.57 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00048/1.155, allocations: 324.4 kB / 0.6735 GB, free: 43.32 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/1.155, allocations: 0 / 0.6735 GB, free: 43.32 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/1.155, allocations: 340.3 kB / 0.6739 GB, free: 43 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005065/1.155, allocations: 318.1 kB / 0.6742 GB, free: 42.86 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005731/1.156, allocations: 0.5196 MB / 0.6747 GB, free: 42.46 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005664/1.157, allocations: 371.5 kB / 0.675 GB, free: 42.31 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/1.157, allocations: 0 / 0.675 GB, free: 42.31 MB / 442.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002656/1.159, allocations: 1.602 MB / 0.6766 GB, free: 41.45 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/1.159, allocations: 7.594 kB / 0.6766 GB, free: 41.45 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001538/1.159, allocations: 123.1 kB / 0.6767 GB, free: 41.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005848/1.16, allocations: 252.5 kB / 0.677 GB, free: 41.31 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008562/1.161, allocations: 230.3 kB / 0.6772 GB, free: 41.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006775/1.168, allocations: 12.78 MB / 0.6897 GB, free: 28.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002478/1.17, allocations: 103.9 kB / 0.6898 GB, free: 28.58 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002148/1.17, allocations: 63.39 kB / 0.6898 GB, free: 28.57 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.v.counter,v.counter,$PRE.vin2.counter,vin2.counter,$PRE.vin1.counter,vin1.counter,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002749/1.171, allocations: 135 kB / 0.69 GB, free: 28.44 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002697/1.173, allocations: 1.519 MB / 0.6914 GB, free: 27.62 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004639/1.174, allocations: 369.8 kB / 0.6918 GB, free: 27.44 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004275/1.178, allocations: 1.886 MB / 0.6936 GB, free: 26.51 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/1.178, allocations: 11.94 kB / 0.6936 GB, free: 26.51 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.228e-06/1.178, allocations: 9 kB / 0.6937 GB, free: 26.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/1.178, allocations: 3.703 kB / 0.6937 GB, free: 26.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002654/1.181, allocations: 1.44 MB / 0.6951 GB, free: 25.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001474/1.181, allocations: 114.1 kB / 0.6952 GB, free: 25.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007034/1.182, allocations: 167.2 kB / 0.6953 GB, free: 25.85 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005342/1.182, allocations: 259.3 kB / 0.6956 GB, free: 25.71 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.181e-05/1.182, allocations: 32.23 kB / 0.6956 GB, free: 25.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008102/1.191, allocations: 12.77 MB / 0.7081 GB, free: 29.01 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/1.191, allocations: 3.844 kB / 0.7081 GB, free: 29.01 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003505/1.194, allocations: 2.047 MB / 0.7101 GB, free: 27.89 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001662/1.196, allocations: 0.5042 MB / 0.7106 GB, free: 27.55 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008007/1.197, allocations: 7.312 kB / 0.7106 GB, free: 27.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001768/1.198, allocations: 100.2 kB / 0.7107 GB, free: 27.54 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004376/1.199, allocations: 140.7 kB / 0.7108 GB, free: 27.52 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001381/1.199, allocations: 53.05 kB / 0.7109 GB, free: 27.52 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003705/1.203, allocations: 1.524 MB / 0.7124 GB, free: 26.87 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.203, allocations: 0 / 0.7124 GB, free: 26.87 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00355/1.206, allocations: 0.6744 MB / 0.713 GB, free: 26.79 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006865/1.213, allocations: 3.488 MB / 0.7164 GB, free: 24.96 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003403/1.217, allocations: 2.111 MB / 0.7185 GB, free: 23.43 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.355e-06/1.217, allocations: 3.562 kB / 0.7185 GB, free: 23.43 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002489/1.219, allocations: 1.716 MB / 0.7202 GB, free: 22.05 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004963/1.224, allocations: 0.5544 MB / 0.7207 GB, free: 21.86 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01639/1.241, allocations: 3.973 MB / 0.7246 GB, free: 18.67 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002461/1.243, allocations: 1.716 MB / 0.7263 GB, free: 17.33 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002603/1.246, allocations: 347.1 kB / 0.7266 GB, free: 17.09 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00182/1.248, allocations: 1.141 MB / 0.7277 GB, free: 16.04 MB / 458.7 MB Notification: Performance of SimCode: time 1.472e-06/1.248, allocations: 0 / 0.7277 GB, free: 16.04 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3721/1.62, allocations: 56.68 MB / 0.7831 GB, free: 87.31 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001532/1.62, allocations: 126.6 kB / 0.7832 GB, free: 87.12 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.727/6.347, allocations: 0 / 0.7832 GB, free: 87.12 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)